pub struct SignUpOpts {
pub identify_by: IdenticationRequirement,
pub allow_sign_up: bool,
pub auto_assign_tags: Vec<AccessTag>,
pub allowed_authn: Vec<GeneralAuthenticationRequirement>,
pub required_authn: Vec<GeneralAuthenticationRequirement>,
}Expand description
Sign up options.
Fields§
§identify_by: IdenticationRequirementIdentication requirement.
Email by default.
allow_sign_up: boolYou can temporarily disable user registration.
Enabled by default.
Assign given tags on common user registration.
allowed_authn: Vec<GeneralAuthenticationRequirement>Users can choose any requirements from this list to construct their own authentication flow. But you can also strict their flows as application backend developers by frontend limiting.
required_authn: Vec<GeneralAuthenticationRequirement>These requirements are mandatory to choose in every single authentication flow.
Implementations§
Source§impl SignUpOpts
impl SignUpOpts
Sourcepub fn with_id_type(self, id_type: IdenticationRequirement) -> Self
pub fn with_id_type(self, id_type: IdenticationRequirement) -> Self
Specifies identification requirement.
Sourcepub fn with_signup_enabled(self, enabled: bool) -> Self
pub fn with_signup_enabled(self, enabled: bool) -> Self
Enables or disables new users’ registration.
Specifies auto-assign tags.
Sourcepub fn with_allowed_steps(
self,
steps: &[GeneralAuthenticationRequirement],
) -> Self
pub fn with_allowed_steps( self, steps: &[GeneralAuthenticationRequirement], ) -> Self
Specifies allowed authentication steps.
Sourcepub fn with_required_steps(
self,
steps: &[GeneralAuthenticationRequirement],
) -> Self
pub fn with_required_steps( self, steps: &[GeneralAuthenticationRequirement], ) -> Self
Specifies required authentication steps.
Trait Implementations§
Source§impl Clone for SignUpOpts
impl Clone for SignUpOpts
Source§fn clone(&self) -> SignUpOpts
fn clone(&self) -> SignUpOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignUpOpts
impl Debug for SignUpOpts
Source§impl Default for SignUpOpts
impl Default for SignUpOpts
Source§impl<'de> Deserialize<'de> for SignUpOpts
impl<'de> Deserialize<'de> for SignUpOpts
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 Eq for SignUpOpts
Source§impl PartialEq for SignUpOpts
impl PartialEq for SignUpOpts
Source§fn eq(&self, other: &SignUpOpts) -> bool
fn eq(&self, other: &SignUpOpts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignUpOpts
impl Serialize for SignUpOpts
impl StructuralPartialEq for SignUpOpts
Source§impl ToSchema for SignUpOpts
impl ToSchema for SignUpOpts
Auto Trait Implementations§
impl Freeze for SignUpOpts
impl RefUnwindSafe for SignUpOpts
impl Send for SignUpOpts
impl Sync for SignUpOpts
impl Unpin for SignUpOpts
impl UnsafeUnpin for SignUpOpts
impl UnwindSafe for SignUpOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.