#[non_exhaustive]pub struct RecoveryOptionType {
pub priority: i32,
pub name: RecoveryOptionNameType,
}Expand description
A map containing a priority as a key, and recovery method name as a value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.priority: i32A positive integer specifying priority of a method with 1 being the highest priority.
name: RecoveryOptionNameTypeThe recovery method for a user.
Implementations§
source§impl RecoveryOptionType
impl RecoveryOptionType
sourcepub fn builder() -> RecoveryOptionTypeBuilder
pub fn builder() -> RecoveryOptionTypeBuilder
Creates a new builder-style object to manufacture RecoveryOptionType.
Trait Implementations§
source§impl Clone for RecoveryOptionType
impl Clone for RecoveryOptionType
source§fn clone(&self) -> RecoveryOptionType
fn clone(&self) -> RecoveryOptionType
Returns a copy 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 RecoveryOptionType
impl Debug for RecoveryOptionType
source§impl PartialEq for RecoveryOptionType
impl PartialEq for RecoveryOptionType
source§fn eq(&self, other: &RecoveryOptionType) -> bool
fn eq(&self, other: &RecoveryOptionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RecoveryOptionType
Auto Trait Implementations§
impl RefUnwindSafe for RecoveryOptionType
impl Send for RecoveryOptionType
impl Sync for RecoveryOptionType
impl Unpin for RecoveryOptionType
impl UnwindSafe for RecoveryOptionType
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> 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>
Creates a shared type from an unshared type.