pub struct ConnIpItem {
pub ip: Option<String>,
pub port: Option<u32>,
pub region: Option<u32>,
pub tc_desc: Option<String>,
pub sc_desc: Option<String>,
pub en_desc: Option<String>,
pub enable_backup_port: Option<bool>,
pub backup_port: Option<u32>,
}Expand description
IP 地址项
Fields§
§ip: Option<String>接入 IP 地址
port: Option<u32>接入端口
region: Option<u32>RegionType
tc_desc: Option<String>繁体文本描述
sc_desc: Option<String>简体文本描述
en_desc: Option<String>英文文本描述
enable_backup_port: Option<bool>是否启用备用端口
backup_port: Option<u32>备用端口号
Implementations§
Source§impl ConnIpItem
impl ConnIpItem
Sourcepub fn region(&self) -> u32
pub fn region(&self) -> u32
Returns the value of region, or the default value if region is unset.
Sourcepub fn tc_desc(&self) -> &str
pub fn tc_desc(&self) -> &str
Returns the value of tc_desc, or the default value if tc_desc is unset.
Sourcepub fn sc_desc(&self) -> &str
pub fn sc_desc(&self) -> &str
Returns the value of sc_desc, or the default value if sc_desc is unset.
Sourcepub fn en_desc(&self) -> &str
pub fn en_desc(&self) -> &str
Returns the value of en_desc, or the default value if en_desc is unset.
Sourcepub fn enable_backup_port(&self) -> bool
pub fn enable_backup_port(&self) -> bool
Returns the value of enable_backup_port, or the default value if enable_backup_port is unset.
Sourcepub fn backup_port(&self) -> u32
pub fn backup_port(&self) -> u32
Returns the value of backup_port, or the default value if backup_port is unset.
Trait Implementations§
Source§impl Clone for ConnIpItem
impl Clone for ConnIpItem
Source§fn clone(&self) -> ConnIpItem
fn clone(&self) -> ConnIpItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnIpItem
impl Debug for ConnIpItem
Source§impl Default for ConnIpItem
impl Default for ConnIpItem
Source§impl Hash for ConnIpItem
impl Hash for ConnIpItem
Source§impl Message for ConnIpItem
impl Message for ConnIpItem
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.Source§impl PartialEq for ConnIpItem
impl PartialEq for ConnIpItem
impl Eq for ConnIpItem
impl StructuralPartialEq for ConnIpItem
Auto Trait Implementations§
impl Freeze for ConnIpItem
impl RefUnwindSafe for ConnIpItem
impl Send for ConnIpItem
impl Sync for ConnIpItem
impl Unpin for ConnIpItem
impl UnsafeUnpin for ConnIpItem
impl UnwindSafe for ConnIpItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.