pub struct Claims {
pub values: BTreeMap<String, Vec<String>>,
pub certificate: Option<Bytes>,
}Expand description
The identity an authenticator obtained, in full, for a matcher to tie to a directory account. A claim is what the credential says, not who the person is: the directory decides the account and its groups.
The names an authenticator that reads a certificate uses: subject.dn, subject.cn (and
the other subject.<attribute>), issuer.dn, serial.hex, serial.reversed (the same
bytes last first), san.upn, san.email, san.dns, san.uri, san.ip, fingerprint
and spki (both sha256:<hex>), and the leaf in certificate.
A name an authenticator has nothing for is absent. Debug shows counts only.
Fields§
§values: BTreeMap<String, Vec<String>>Each claim and its values, in the order the credential gave them.
certificate: Option<Bytes>The credential itself, when it has a form of its own: the leaf certificate as DER.
Implementations§
Trait Implementations§
impl Eq for Claims
Source§impl FromValue for Claims
impl FromValue for Claims
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 Claims
impl Schema for Claims
impl StructuralPartialEq for Claims
Auto Trait Implementations§
impl Freeze for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin for Claims
impl UnsafeUnpin for Claims
impl UnwindSafe for Claims
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