pub struct UpdateRegistrationFlowWithCodeMethod {
pub code: Option<String>,
pub csrf_token: Option<String>,
pub method: String,
pub resend: Option<String>,
pub traits: Value,
pub transient_payload: Option<Value>,
}Expand description
UpdateRegistrationFlowWithCodeMethod : Update Registration Flow with Code Method
Fields§
§code: Option<String>The OTP Code sent to the user
csrf_token: Option<String>The CSRF Token
method: StringMethod to use This field must be set to code when using the code method.
resend: Option<String>Resend restarts the flow with a new code
traits: ValueThe identity’s traits
transient_payload: Option<Value>Transient data to pass along to any webhooks
Implementations§
Source§impl UpdateRegistrationFlowWithCodeMethod
impl UpdateRegistrationFlowWithCodeMethod
Sourcepub fn new(
method: String,
traits: Value,
) -> UpdateRegistrationFlowWithCodeMethod
pub fn new( method: String, traits: Value, ) -> UpdateRegistrationFlowWithCodeMethod
Update Registration Flow with Code Method
Trait Implementations§
Source§impl Clone for UpdateRegistrationFlowWithCodeMethod
impl Clone for UpdateRegistrationFlowWithCodeMethod
Source§fn clone(&self) -> UpdateRegistrationFlowWithCodeMethod
fn clone(&self) -> UpdateRegistrationFlowWithCodeMethod
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 UpdateRegistrationFlowWithCodeMethod
impl Default for UpdateRegistrationFlowWithCodeMethod
Source§fn default() -> UpdateRegistrationFlowWithCodeMethod
fn default() -> UpdateRegistrationFlowWithCodeMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateRegistrationFlowWithCodeMethod
impl<'de> Deserialize<'de> for UpdateRegistrationFlowWithCodeMethod
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 UpdateRegistrationFlowWithCodeMethod
impl PartialEq for UpdateRegistrationFlowWithCodeMethod
Source§fn eq(&self, other: &UpdateRegistrationFlowWithCodeMethod) -> bool
fn eq(&self, other: &UpdateRegistrationFlowWithCodeMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateRegistrationFlowWithCodeMethod
Auto Trait Implementations§
impl Freeze for UpdateRegistrationFlowWithCodeMethod
impl RefUnwindSafe for UpdateRegistrationFlowWithCodeMethod
impl Send for UpdateRegistrationFlowWithCodeMethod
impl Sync for UpdateRegistrationFlowWithCodeMethod
impl Unpin for UpdateRegistrationFlowWithCodeMethod
impl UnwindSafe for UpdateRegistrationFlowWithCodeMethod
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