pub struct SessionAnalytics {Show 17 fields
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub device_type: Option<String>,
pub browser: Option<String>,
pub os: Option<String>,
pub fingerprint_hash: Option<String>,
pub preferred_locale: Option<String>,
pub country: Option<String>,
pub region: Option<String>,
pub city: Option<String>,
pub referrer_source: Option<String>,
pub referrer_url: Option<String>,
pub landing_page: Option<String>,
pub entry_url: Option<String>,
pub utm_source: Option<String>,
pub utm_medium: Option<String>,
pub utm_campaign: Option<String>,
}Fields§
§ip_address: Option<String>§user_agent: Option<String>§device_type: Option<String>§browser: Option<String>§os: Option<String>§fingerprint_hash: Option<String>§preferred_locale: Option<String>§country: Option<String>§region: Option<String>§city: Option<String>§referrer_source: Option<String>§referrer_url: Option<String>§landing_page: Option<String>§entry_url: Option<String>§utm_source: Option<String>§utm_medium: Option<String>§utm_campaign: Option<String>Implementations§
Source§impl SessionAnalytics
impl SessionAnalytics
pub fn from_headers(headers: &HeaderMap) -> Self
pub fn from_headers_with_geoip( headers: &HeaderMap, geoip_reader: Option<&GeoIpReader>, ) -> Self
pub fn from_headers_with_geoip_and_socket( headers: &HeaderMap, geoip_reader: Option<&GeoIpReader>, socket_addr: Option<SocketAddr>, ) -> Self
pub fn from_headers_and_uri( headers: &HeaderMap, uri: Option<&Uri>, geoip_reader: Option<&GeoIpReader>, content_routing: Option<&dyn ContentRouting>, ) -> Self
pub fn is_bot(&self) -> bool
pub fn is_bot_ip(&self) -> bool
pub fn is_spam_referrer(&self) -> bool
pub fn is_datacenter_ip(&self) -> bool
pub fn is_high_risk_country(&self) -> bool
pub fn should_skip_tracking(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionAnalytics
impl Clone for SessionAnalytics
Source§fn clone(&self) -> SessionAnalytics
fn clone(&self) -> SessionAnalytics
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 SessionAnalytics
impl Debug for SessionAnalytics
Source§impl Default for SessionAnalytics
impl Default for SessionAnalytics
Source§fn default() -> SessionAnalytics
fn default() -> SessionAnalytics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionAnalytics
impl RefUnwindSafe for SessionAnalytics
impl Send for SessionAnalytics
impl Sync for SessionAnalytics
impl Unpin for SessionAnalytics
impl UnwindSafe for SessionAnalytics
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,
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