pub struct PushContext {
pub device_info: DeviceInfo,
pub location: LocationInfo,
pub ip_address: String,
pub timestamp: DateTime<Utc>,
pub app_name: String,
pub operation: String,
pub recent_activity: Vec<ActivitySummary>,
}Expand description
Push context (rich information)
Fields§
§device_info: DeviceInfoDevice information
location: LocationInfoLocation information
ip_address: StringIP address
timestamp: DateTime<Utc>Timestamp of authentication attempt
app_name: StringApplication/service name
operation: StringOperation being performed
recent_activity: Vec<ActivitySummary>Recent account activity
Trait Implementations§
Source§impl Clone for PushContext
impl Clone for PushContext
Source§fn clone(&self) -> PushContext
fn clone(&self) -> PushContext
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 PushContext
impl Debug for PushContext
Source§impl<'de> Deserialize<'de> for PushContext
impl<'de> Deserialize<'de> for PushContext
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
Auto Trait Implementations§
impl Freeze for PushContext
impl RefUnwindSafe for PushContext
impl Send for PushContext
impl Sync for PushContext
impl Unpin for PushContext
impl UnsafeUnpin for PushContext
impl UnwindSafe for PushContext
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