pub struct UpdateLoginFlowWithCodeMethod {
pub address: Option<String>,
pub code: Option<String>,
pub csrf_token: String,
pub identifier: Option<String>,
pub method: String,
pub resend: Option<String>,
pub transient_payload: Option<Value>,
}Expand description
UpdateLoginFlowWithCodeMethod : Update Login flow using the code method
Fields§
§address: Option<String>Address is the address to send the code to, in case that there are multiple addresses. This field is only used in two-factor flows and is ineffective for passwordless flows.
code: Option<String>Code is the 6 digits code sent to the user
csrf_token: StringCSRFToken is the anti-CSRF token
identifier: Option<String>Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow.
method: StringMethod should be set to "code" when logging in using the code strategy.
resend: Option<String>Resend is set when the user wants to resend the code
transient_payload: Option<Value>Transient data to pass along to any webhooks
Implementations§
Source§impl UpdateLoginFlowWithCodeMethod
impl UpdateLoginFlowWithCodeMethod
Sourcepub fn new(csrf_token: String, method: String) -> UpdateLoginFlowWithCodeMethod
pub fn new(csrf_token: String, method: String) -> UpdateLoginFlowWithCodeMethod
Update Login flow using the code method
Trait Implementations§
Source§impl Clone for UpdateLoginFlowWithCodeMethod
impl Clone for UpdateLoginFlowWithCodeMethod
Source§fn clone(&self) -> UpdateLoginFlowWithCodeMethod
fn clone(&self) -> UpdateLoginFlowWithCodeMethod
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 UpdateLoginFlowWithCodeMethod
impl Default for UpdateLoginFlowWithCodeMethod
Source§fn default() -> UpdateLoginFlowWithCodeMethod
fn default() -> UpdateLoginFlowWithCodeMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateLoginFlowWithCodeMethod
impl<'de> Deserialize<'de> for UpdateLoginFlowWithCodeMethod
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 UpdateLoginFlowWithCodeMethod
impl PartialEq for UpdateLoginFlowWithCodeMethod
Source§fn eq(&self, other: &UpdateLoginFlowWithCodeMethod) -> bool
fn eq(&self, other: &UpdateLoginFlowWithCodeMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateLoginFlowWithCodeMethod
Auto Trait Implementations§
impl Freeze for UpdateLoginFlowWithCodeMethod
impl RefUnwindSafe for UpdateLoginFlowWithCodeMethod
impl Send for UpdateLoginFlowWithCodeMethod
impl Sync for UpdateLoginFlowWithCodeMethod
impl Unpin for UpdateLoginFlowWithCodeMethod
impl UnwindSafe for UpdateLoginFlowWithCodeMethod
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