pub struct TwoFactorRequest {
pub application_id: Option<Uuid>,
pub authenticator_id: Option<String>,
pub code: Option<String>,
pub email: Option<String>,
pub method: Option<String>,
pub mobile_phone: Option<String>,
pub secret: Option<String>,
pub secret_base32_encoded: Option<String>,
pub two_factor_id: Option<String>,
pub event_info: Option<Box<EventInfo>>,
}
Expand description
TwoFactorRequest :
Fields§
§application_id: Option<Uuid>
§authenticator_id: Option<String>
§code: Option<String>
§email: Option<String>
§method: Option<String>
§mobile_phone: Option<String>
§secret: Option<String>
§secret_base32_encoded: Option<String>
§two_factor_id: Option<String>
§event_info: Option<Box<EventInfo>>
Implementations§
source§impl TwoFactorRequest
impl TwoFactorRequest
sourcepub fn new() -> TwoFactorRequest
pub fn new() -> TwoFactorRequest
Trait Implementations§
source§impl Clone for TwoFactorRequest
impl Clone for TwoFactorRequest
source§fn clone(&self) -> TwoFactorRequest
fn clone(&self) -> TwoFactorRequest
Returns a copy 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 TwoFactorRequest
impl Debug for TwoFactorRequest
source§impl Default for TwoFactorRequest
impl Default for TwoFactorRequest
source§fn default() -> TwoFactorRequest
fn default() -> TwoFactorRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TwoFactorRequest
impl<'de> Deserialize<'de> for TwoFactorRequest
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
source§impl PartialEq for TwoFactorRequest
impl PartialEq for TwoFactorRequest
source§fn eq(&self, other: &TwoFactorRequest) -> bool
fn eq(&self, other: &TwoFactorRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TwoFactorRequest
impl Serialize for TwoFactorRequest
impl StructuralPartialEq for TwoFactorRequest
Auto Trait Implementations§
impl RefUnwindSafe for TwoFactorRequest
impl Send for TwoFactorRequest
impl Sync for TwoFactorRequest
impl Unpin for TwoFactorRequest
impl UnwindSafe for TwoFactorRequest
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