#[non_exhaustive]pub struct ClientSummary {
pub country: Option<String>,
pub city: Option<String>,
pub asn: Option<u32>,
pub network: Option<String>,
pub anonymity: Option<Anonymity>,
pub browser: Option<String>,
pub os: Option<String>,
}Expand description
What the guard knew about the client of an event: IpIntel data and the
parsed User-Agent. Each field is None when its source has no answer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.country: Option<String>ISO 3166-1 alpha-2 country code.
city: Option<String>City name.
asn: Option<u32>Autonomous system number.
network: Option<String>Name of the organization behind the autonomous system.
anonymity: Option<Anonymity>Anonymizer the network belongs to.
browser: Option<String>Browser family.
os: Option<String>Operating system family.
Trait Implementations§
Source§impl Clone for ClientSummary
impl Clone for ClientSummary
Source§impl Debug for ClientSummary
impl Debug for ClientSummary
Source§impl Default for ClientSummary
impl Default for ClientSummary
Source§impl<'de> Deserialize<'de> for ClientSummarywhere
ClientSummary: Default,
impl<'de> Deserialize<'de> for ClientSummarywhere
ClientSummary: Default,
Source§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
impl Eq for ClientSummary
Source§impl PartialEq for ClientSummary
impl PartialEq for ClientSummary
Source§impl Serialize for ClientSummary
impl Serialize for ClientSummary
impl StructuralPartialEq for ClientSummary
Auto Trait Implementations§
impl Freeze for ClientSummary
impl RefUnwindSafe for ClientSummary
impl Send for ClientSummary
impl Sync for ClientSummary
impl Unpin for ClientSummary
impl UnsafeUnpin for ClientSummary
impl UnwindSafe for ClientSummary
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more