pub struct Identity {Show 19 fields
pub id: Option<u64>,
pub device_model: Option<String>,
pub has_battery: bool,
pub has_mouse: bool,
pub has_touch: bool,
pub os: Os,
pub os_version: String,
pub platform: PlatformInfo,
pub browser: Browser,
pub browser_version: Vec<u16>,
pub screen: ScreenResolution,
pub hardware_concurrency: u8,
pub memory: u8,
pub gpu: Gpu,
pub geo: IdentityCountryGeo,
pub language: Vec<String>,
pub history_count: Option<u16>,
pub proxy: Option<String>,
pub timezone: Option<String>,
}Fields§
§id: Option<u64>§device_model: Option<String>None device_model implies desktop/laptop
has_battery: bool§has_mouse: bool§has_touch: bool§os: Os§os_version: String§platform: PlatformInfo§browser: Browser§browser_version: Vec<u16>e.g. [124, 0, 6367, 78]
screen: ScreenResolution§hardware_concurrency: u8§memory: u8deviceMemory in GiB
gpu: Gpu§geo: IdentityCountryGeo§language: Vec<String>e.g. [“en-US”, “en”]
history_count: Option<u16>§proxy: Option<String>Full URL with credentials
timezone: Option<String>IANA timezone string. If None, fetched from ip-api.com via proxy.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
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
Source§impl From<Identity> for IdentityConfig
impl From<Identity> for IdentityConfig
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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<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