pub struct SyntheticIdentity {
pub user_agent: String,
pub locale: String,
pub timezone: String,
pub viewport: (u32, u32),
pub ga_client_id: String,
pub session_count: u32,
pub first_visit_days_ago: u32,
}Fields§
§user_agent: String§locale: String§timezone: String§viewport: (u32, u32)§ga_client_id: String§session_count: u32§first_visit_days_ago: u32Visit-history depth in days. Drives the first_visit_days_ago
timestamp the runtime sometimes attaches.
Implementations§
Source§impl SyntheticIdentity
impl SyntheticIdentity
Sourcepub fn test_default() -> Self
pub fn test_default() -> Self
Default identity for use in unit tests. Real production
identities flow in from the camoufox SyntheticUserPool.
Trait Implementations§
Source§impl Clone for SyntheticIdentity
impl Clone for SyntheticIdentity
Source§fn clone(&self) -> SyntheticIdentity
fn clone(&self) -> SyntheticIdentity
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 moreAuto Trait Implementations§
impl Freeze for SyntheticIdentity
impl RefUnwindSafe for SyntheticIdentity
impl Send for SyntheticIdentity
impl Sync for SyntheticIdentity
impl Unpin for SyntheticIdentity
impl UnsafeUnpin for SyntheticIdentity
impl UnwindSafe for SyntheticIdentity
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