pub struct Audience(pub OneOrMany<StringOrURI>);
Expand description
Audience (aud
) claim.
Recipients that the JWT is intended for. Each principal intended to
process the JWT MUST identify itself with a value in the audience claim.
If the principal processing the claim does not identify itself with a
value in the aud
claim when this claim is present, then the JWT MUST
be rejected.
Tuple Fields§
§0: OneOrMany<StringOrURI>
Trait Implementations§
Source§impl Claim for Audience
impl Claim for Audience
Source§const JWT_CLAIM_NAME: &'static str = "aud"
const JWT_CLAIM_NAME: &'static str = "aud"
Claim name, used as key in the JSON representation.
Source§impl<'de> Deserialize<'de> for Audience
impl<'de> Deserialize<'de> for Audience
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 From<Audience> for AnyRegisteredClaim
impl From<Audience> for AnyRegisteredClaim
Source§impl Ord for Audience
impl Ord for Audience
Source§impl PartialOrd for Audience
impl PartialOrd for Audience
Source§impl RegisteredClaim for Audience
impl RegisteredClaim for Audience
const JWT_REGISTERED_CLAIM_KIND: RegisteredClaimKind = RegisteredClaimKind::Audience
fn extract(claim: AnyRegisteredClaim) -> Option<Self>
fn extract_ref(claim: &AnyRegisteredClaim) -> Option<&Self>
fn extract_mut(claim: &mut AnyRegisteredClaim) -> Option<&mut Self>
Source§impl<T> TryIntoClaim<Audience> for T
impl<T> TryIntoClaim<Audience> for T
impl Eq for Audience
impl StructuralPartialEq for Audience
Auto Trait Implementations§
impl Freeze for Audience
impl RefUnwindSafe for Audience
impl Send for Audience
impl Sync for Audience
impl Unpin for Audience
impl UnwindSafe for Audience
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.