#[non_exhaustive]pub enum SessionTaskKey {
ChooseOrganization,
ResetPassword,
SetupMfa,
Other(OtherTaskKey),
}Expand description
A clerk-js v6 session task key.
Serializes as the raw clerk-js task-key string. The enum is
#[non_exhaustive]; keys this crate has not named yet round-trip through
SessionTaskKey::Other, mirroring SessionStatus.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChooseOrganization
The user must choose or create an organization.
ResetPassword
The user must reset their password.
SetupMfa
The user must enroll in multi-factor authentication.
Other(OtherTaskKey)
A task-key string this crate has not named yet.
Only produced by the From<&str>/From<String> conversions, which
canonicalize known keys to their named variants first. The payload is an
OtherTaskKey with no public constructor, so an Other can never
alias a named variant.
Implementations§
Trait Implementations§
Source§impl Clone for SessionTaskKey
impl Clone for SessionTaskKey
Source§fn clone(&self) -> SessionTaskKey
fn clone(&self) -> SessionTaskKey
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 SessionTaskKey
impl Debug for SessionTaskKey
Source§impl<'de> Deserialize<'de> for SessionTaskKey
impl<'de> Deserialize<'de> for SessionTaskKey
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 Display for SessionTaskKey
impl Display for SessionTaskKey
impl Eq for SessionTaskKey
Source§impl From<&str> for SessionTaskKey
impl From<&str> for SessionTaskKey
Source§impl From<SessionTaskKey> for String
impl From<SessionTaskKey> for String
Source§fn from(key: SessionTaskKey) -> Self
fn from(key: SessionTaskKey) -> Self
Converts to this type from the input type.
Source§impl From<String> for SessionTaskKey
impl From<String> for SessionTaskKey
Source§impl FromStr for SessionTaskKey
impl FromStr for SessionTaskKey
Source§impl Hash for SessionTaskKey
impl Hash for SessionTaskKey
Source§impl PartialEq for SessionTaskKey
impl PartialEq for SessionTaskKey
Source§impl Serialize for SessionTaskKey
impl Serialize for SessionTaskKey
impl StructuralPartialEq for SessionTaskKey
Auto Trait Implementations§
impl Freeze for SessionTaskKey
impl RefUnwindSafe for SessionTaskKey
impl Send for SessionTaskKey
impl Sync for SessionTaskKey
impl Unpin for SessionTaskKey
impl UnsafeUnpin for SessionTaskKey
impl UnwindSafe for SessionTaskKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.