pub struct AnalyticsClientMeta {
pub region: String,
pub node: String,
pub client_addr: String,
pub client_connect_time: u32,
pub connection_type: String,
pub reconnect_reason: i32,
pub geo_hash: Option<String>,
pub country: Option<String>,
pub isp_asn: Option<u32>,
}Fields§
§region: String§node: String§client_addr: String§client_connect_time: u32§connection_type: Stringudp, tcp, turn
reconnect_reason: i32§geo_hash: Option<String>§country: Option<String>§isp_asn: Option<u32>Implementations§
Source§impl AnalyticsClientMeta
impl AnalyticsClientMeta
Sourcepub fn reconnect_reason(&self) -> ReconnectReason
pub fn reconnect_reason(&self) -> ReconnectReason
Returns the enum value of reconnect_reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reconnect_reason(&mut self, value: ReconnectReason)
pub fn set_reconnect_reason(&mut self, value: ReconnectReason)
Sets reconnect_reason to the provided enum value.
Sourcepub fn geo_hash(&self) -> &str
pub fn geo_hash(&self) -> &str
Returns the value of geo_hash, or the default value if geo_hash is unset.
Trait Implementations§
Source§impl Clone for AnalyticsClientMeta
impl Clone for AnalyticsClientMeta
Source§fn clone(&self) -> AnalyticsClientMeta
fn clone(&self) -> AnalyticsClientMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnalyticsClientMeta
impl Debug for AnalyticsClientMeta
Source§impl Default for AnalyticsClientMeta
impl Default for AnalyticsClientMeta
§impl<'de> Deserialize<'de> for AnalyticsClientMeta
impl<'de> Deserialize<'de> for AnalyticsClientMeta
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for AnalyticsClientMeta
impl Message for AnalyticsClientMeta
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AnalyticsClientMeta
impl PartialEq for AnalyticsClientMeta
Source§fn eq(&self, other: &AnalyticsClientMeta) -> bool
fn eq(&self, other: &AnalyticsClientMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for AnalyticsClientMeta
impl Serialize for AnalyticsClientMeta
impl StructuralPartialEq for AnalyticsClientMeta
Auto Trait Implementations§
impl Freeze for AnalyticsClientMeta
impl RefUnwindSafe for AnalyticsClientMeta
impl Send for AnalyticsClientMeta
impl Sync for AnalyticsClientMeta
impl Unpin for AnalyticsClientMeta
impl UnsafeUnpin for AnalyticsClientMeta
impl UnwindSafe for AnalyticsClientMeta
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