pub struct ConnIpRsp {
pub result_code: Option<i32>,
pub err_msg: Option<String>,
pub ip_list: Vec<ConnIpItem>,
pub anti_ddos_ip: Option<String>,
pub conn_identity: Option<u32>,
pub condition_flag: Option<i32>,
}Expand description
拉取地址列表回复
Fields§
§result_code: Option<i32>错误码, ConnIpResultCode
err_msg: Option<String>错误文本描述
ip_list: Vec<ConnIpItem>接入 IP 地址列表
anti_ddos_ip: Option<String>高防ip
conn_identity: Option<u32>conn身份属性
condition_flag: Option<i32>流量标记位
Implementations§
Source§impl ConnIpRsp
impl ConnIpRsp
Sourcepub fn result_code(&self) -> i32
pub fn result_code(&self) -> i32
Returns the value of result_code, or the default value if result_code is unset.
Sourcepub fn err_msg(&self) -> &str
pub fn err_msg(&self) -> &str
Returns the value of err_msg, or the default value if err_msg is unset.
Sourcepub fn anti_ddos_ip(&self) -> &str
pub fn anti_ddos_ip(&self) -> &str
Returns the value of anti_ddos_ip, or the default value if anti_ddos_ip is unset.
Sourcepub fn conn_identity(&self) -> u32
pub fn conn_identity(&self) -> u32
Returns the value of conn_identity, or the default value if conn_identity is unset.
Sourcepub fn condition_flag(&self) -> i32
pub fn condition_flag(&self) -> i32
Returns the value of condition_flag, or the default value if condition_flag is unset.
Trait Implementations§
Source§impl Message for ConnIpRsp
impl Message for ConnIpRsp
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for ConnIpRsp
Auto Trait Implementations§
impl Freeze for ConnIpRsp
impl RefUnwindSafe for ConnIpRsp
impl Send for ConnIpRsp
impl Sync for ConnIpRsp
impl Unpin for ConnIpRsp
impl UnsafeUnpin for ConnIpRsp
impl UnwindSafe for ConnIpRsp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more