pub struct SuccessfulNativeRegistration {
pub continue_with: Option<Vec<ContinueWith>>,
pub identity: Box<Identity>,
pub session: Option<Box<Session>>,
pub session_token: Option<String>,
}Expand description
SuccessfulNativeRegistration : The Response for Registration Flows via API
Fields§
§continue_with: Option<Vec<ContinueWith>>Contains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user’s registration or the token of the session.
identity: Box<Identity>§session: Option<Box<Session>>§session_token: Option<String>The Session Token This field is only set when the session hook is configured as a post-registration hook. A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows!
Implementations§
Source§impl SuccessfulNativeRegistration
impl SuccessfulNativeRegistration
Sourcepub fn new(identity: Identity) -> SuccessfulNativeRegistration
pub fn new(identity: Identity) -> SuccessfulNativeRegistration
The Response for Registration Flows via API
Trait Implementations§
Source§impl Clone for SuccessfulNativeRegistration
impl Clone for SuccessfulNativeRegistration
Source§fn clone(&self) -> SuccessfulNativeRegistration
fn clone(&self) -> SuccessfulNativeRegistration
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 Debug for SuccessfulNativeRegistration
impl Debug for SuccessfulNativeRegistration
Source§impl Default for SuccessfulNativeRegistration
impl Default for SuccessfulNativeRegistration
Source§fn default() -> SuccessfulNativeRegistration
fn default() -> SuccessfulNativeRegistration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuccessfulNativeRegistration
impl<'de> Deserialize<'de> for SuccessfulNativeRegistration
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 SuccessfulNativeRegistration
impl PartialEq for SuccessfulNativeRegistration
Source§fn eq(&self, other: &SuccessfulNativeRegistration) -> bool
fn eq(&self, other: &SuccessfulNativeRegistration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SuccessfulNativeRegistration
Auto Trait Implementations§
impl Freeze for SuccessfulNativeRegistration
impl RefUnwindSafe for SuccessfulNativeRegistration
impl Send for SuccessfulNativeRegistration
impl Sync for SuccessfulNativeRegistration
impl Unpin for SuccessfulNativeRegistration
impl UnwindSafe for SuccessfulNativeRegistration
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