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 one-time 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<'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
impl StructuralPartialEq for UpdateLoginFlowWithCodeMethod
Auto Trait Implementations§
impl Forget for UpdateLoginFlowWithCodeMethod
impl Freeze for UpdateLoginFlowWithCodeMethod
impl RefUnwindSafe for UpdateLoginFlowWithCodeMethod
impl Send for UpdateLoginFlowWithCodeMethod
impl Sync for UpdateLoginFlowWithCodeMethod
impl Unpin for UpdateLoginFlowWithCodeMethod
impl UnsafeUnpin 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