pub struct UpdateLoginFlowWithTotpMethod {
pub csrf_token: Option<String>,
pub method: String,
pub totp_code: String,
pub transient_payload: Option<Value>,
}Expand description
UpdateLoginFlowWithTotpMethod : Update Login Flow with TOTP Method
Fields§
§csrf_token: Option<String>Sending the anti-csrf token is only required for browser login flows.
method: StringMethod should be set to "totp" when logging in using the TOTP strategy.
totp_code: StringThe TOTP code.
transient_payload: Option<Value>Transient data to pass along to any webhooks
Implementations§
Source§impl UpdateLoginFlowWithTotpMethod
impl UpdateLoginFlowWithTotpMethod
Sourcepub fn new(method: String, totp_code: String) -> UpdateLoginFlowWithTotpMethod
pub fn new(method: String, totp_code: String) -> UpdateLoginFlowWithTotpMethod
Update Login Flow with TOTP Method
Trait Implementations§
Source§impl Clone for UpdateLoginFlowWithTotpMethod
impl Clone for UpdateLoginFlowWithTotpMethod
Source§fn clone(&self) -> UpdateLoginFlowWithTotpMethod
fn clone(&self) -> UpdateLoginFlowWithTotpMethod
Returns a duplicate 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 Default for UpdateLoginFlowWithTotpMethod
impl Default for UpdateLoginFlowWithTotpMethod
Source§fn default() -> UpdateLoginFlowWithTotpMethod
fn default() -> UpdateLoginFlowWithTotpMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateLoginFlowWithTotpMethod
impl<'de> Deserialize<'de> for UpdateLoginFlowWithTotpMethod
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 UpdateLoginFlowWithTotpMethod
impl PartialEq for UpdateLoginFlowWithTotpMethod
Source§fn eq(&self, other: &UpdateLoginFlowWithTotpMethod) -> bool
fn eq(&self, other: &UpdateLoginFlowWithTotpMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateLoginFlowWithTotpMethod
Auto Trait Implementations§
impl Freeze for UpdateLoginFlowWithTotpMethod
impl RefUnwindSafe for UpdateLoginFlowWithTotpMethod
impl Send for UpdateLoginFlowWithTotpMethod
impl Sync for UpdateLoginFlowWithTotpMethod
impl Unpin for UpdateLoginFlowWithTotpMethod
impl UnwindSafe for UpdateLoginFlowWithTotpMethod
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