pub struct OidcIdentity {
pub issuer: String,
pub claims: Vec<Claim>,
}Expand description
The OpenID Connect identity an account is.
An ID token from issuer whose claims carry every entry of claims,
each with the value given, authenticates as the account.
Fields§
§issuer: StringThe issuer, as the iss claim spells it.
claims: Vec<Claim>Claims the token must carry, in the order given.
Implementations§
Source§impl OidcIdentity
impl OidcIdentity
Sourcepub fn new<I, N, V>(issuer: &str, claims: I) -> Self
pub fn new<I, N, V>(issuer: &str, claims: I) -> Self
An identity at issuer matched by every (name, value) claim given.
Sourcepub fn claims_by_pointer(&self) -> BTreeSet<(String, &str)>
pub fn claims_by_pointer(&self) -> BTreeSet<(String, &str)>
Every claim this identity names, by its Claim::pointer, with the
value it must hold. A claim named twice with one value is here once.
Sourcepub fn repeated_claim(&self) -> Option<&Claim>
pub fn repeated_claim(&self) -> Option<&Claim>
The first claim whose Claim::pointer an earlier claim already
names, in either spelling.
Trait Implementations§
Source§impl Clone for OidcIdentity
impl Clone for OidcIdentity
Source§fn clone(&self) -> OidcIdentity
fn clone(&self) -> OidcIdentity
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 OidcIdentity
impl Debug for OidcIdentity
Source§impl<'de> Deserialize<'de> for OidcIdentity
impl<'de> Deserialize<'de> for OidcIdentity
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 PartialEq for OidcIdentity
impl PartialEq for OidcIdentity
Source§fn eq(&self, other: &OidcIdentity) -> bool
fn eq(&self, other: &OidcIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OidcIdentity
impl Serialize for OidcIdentity
impl Eq for OidcIdentity
impl StructuralPartialEq for OidcIdentity
Auto Trait Implementations§
impl Freeze for OidcIdentity
impl RefUnwindSafe for OidcIdentity
impl Send for OidcIdentity
impl Sync for OidcIdentity
impl Unpin for OidcIdentity
impl UnsafeUnpin for OidcIdentity
impl UnwindSafe for OidcIdentity
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.