pub struct NotBefore(pub NumericDate);Expand description
Not Before (nbf) claim.
Time before which the JWT MUST NOT be accepted for processing. The
processing of the nbf claim requires that the current date/time MUST
be after or equal to the not-before date/time listed in the “nbf” claim.
Implementers MAY provide for some small leeway, usually no more than a
few minutes, to account for clock skew.
Tuple Fields§
§0: NumericDateImplementations§
Trait Implementations§
Source§impl Claim for NotBefore
impl Claim for NotBefore
Source§const JWT_CLAIM_NAME: &'static str = "nbf"
const JWT_CLAIM_NAME: &'static str = "nbf"
Claim name, used as key in the JSON representation.
impl Copy for NotBefore
Source§impl<'de> Deserialize<'de> for NotBefore
impl<'de> Deserialize<'de> for NotBefore
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
impl Eq for NotBefore
Source§impl From<NotBefore> for AnyRegisteredClaim
impl From<NotBefore> for AnyRegisteredClaim
Source§impl Ord for NotBefore
impl Ord for NotBefore
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for NotBefore
impl PartialOrd for NotBefore
Source§impl RegisteredClaim for NotBefore
impl RegisteredClaim for NotBefore
const JWT_REGISTERED_CLAIM_KIND: RegisteredClaimKind = RegisteredClaimKind::NotBefore
fn extract(claim: AnyRegisteredClaim) -> Option<Self>
fn extract_ref(claim: &AnyRegisteredClaim) -> Option<&Self>
fn extract_mut(claim: &mut AnyRegisteredClaim) -> Option<&mut Self>
impl StructuralPartialEq for NotBefore
Auto Trait Implementations§
impl Freeze for NotBefore
impl RefUnwindSafe for NotBefore
impl Send for NotBefore
impl Sync for NotBefore
impl Unpin for NotBefore
impl UnsafeUnpin for NotBefore
impl UnwindSafe for NotBefore
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
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.