pub struct Lookup {
pub by: String,
pub value: String,
pub claims: Option<Claims>,
}Expand description
An identity lookup key returned after an authenticator accepts credentials.
Fields§
§by: StringDirectory attribute to match, such as id, name or email; claims when the
authenticator names no account itself and the consumer’s matcher decides from
claims.
value: StringValue to resolve in a configured directory; a label for a log when by is claims.
claims: Option<Claims>What the credential said, in full, when the authenticator has more than a name.
Trait Implementations§
impl Eq for Lookup
Source§impl FromValue for Lookup
impl FromValue for Lookup
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 Lookup
impl Schema for Lookup
impl StructuralPartialEq for Lookup
Auto Trait Implementations§
impl Freeze for Lookup
impl RefUnwindSafe for Lookup
impl Send for Lookup
impl Sync for Lookup
impl Unpin for Lookup
impl UnsafeUnpin for Lookup
impl UnwindSafe for Lookup
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