Struct rive_models::mfa::MFATicket
source · pub struct MFATicket {
pub id: String,
pub account_id: String,
pub token: String,
pub validated: bool,
pub authorised: bool,
pub last_totp_code: Option<String>,
}Expand description
Multi-factor auth ticket
Fields§
§id: StringUnique Id
account_id: StringAccount Id
token: StringUnique Token
validated: boolWhether this ticket has been validated (can be used for account actions)
Whether this ticket is authorised (can be used to log a user in)
last_totp_code: Option<String>TOTP code at time of ticket creation
Trait Implementations§
source§impl<'de> Deserialize<'de> for MFATicket
impl<'de> Deserialize<'de> for MFATicket
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 RefUnwindSafe for MFATicket
impl Send for MFATicket
impl Sync for MFATicket
impl Unpin for MFATicket
impl UnwindSafe for MFATicket
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