pub struct Factor {
pub method: String,
pub provider: Option<String>,
pub person: Option<String>,
}Expand description
One step of a sign-in that already succeeded.
Debug shows the method and provider, never who the step named.
Fields§
§method: StringThe methods word it was presented as.
provider: Option<String>The provider that accepted it, by the id the consumer asks it under. A rule that
names providers counts only a factor a listed provider accepted.
person: Option<String>The Person::id the step named. A policy refuses a sign-in whose steps name
different people; a step that names none (None) is not held against it.
Trait Implementations§
impl Eq for Factor
Source§impl FromValue for Factor
impl FromValue for Factor
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl Schema for Factor
impl Schema for Factor
impl StructuralPartialEq for Factor
Auto Trait Implementations§
impl Freeze for Factor
impl RefUnwindSafe for Factor
impl Send for Factor
impl Sync for Factor
impl Unpin for Factor
impl UnsafeUnpin for Factor
impl UnwindSafe for Factor
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