pub struct PushChallenge {
pub challenge_id: String,
pub user_id: UserId,
pub tenant_id: TenantId,
pub number_match_code: Option<String>,
pub context: PushContext,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub is_approved: bool,
pub responded_at: Option<DateTime<Utc>>,
pub response: Option<PushResponse>,
}Expand description
Push challenge (for authentication)
Fields§
§challenge_id: StringChallenge ID (shown to user, not sensitive)
user_id: UserIdUser ID
tenant_id: TenantIdTenant ID
number_match_code: Option<String>Number matching code (3-digit)
context: PushContextContext information
created_at: DateTime<Utc>Created timestamp
expires_at: DateTime<Utc>Expiration timestamp
is_approved: boolIs approved
responded_at: Option<DateTime<Utc>>Approved/denied timestamp
response: Option<PushResponse>Response (approve/deny)
Trait Implementations§
Source§impl Clone for PushChallenge
impl Clone for PushChallenge
Source§fn clone(&self) -> PushChallenge
fn clone(&self) -> PushChallenge
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 PushChallenge
impl Debug for PushChallenge
Source§impl<'de> Deserialize<'de> for PushChallenge
impl<'de> Deserialize<'de> for PushChallenge
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 PushChallenge
impl RefUnwindSafe for PushChallenge
impl Send for PushChallenge
impl Sync for PushChallenge
impl Unpin for PushChallenge
impl UnsafeUnpin for PushChallenge
impl UnwindSafe for PushChallenge
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