pub struct ForAudience<T: AsRef<str>>(pub T);Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: AsRef<str>> Validate for ForAudience<T>
impl<T: AsRef<str>> Validate for ForAudience<T>
Source§type Claims = RegisteredClaims
type Claims = RegisteredClaims
The type of claim that can be validated
Source§fn validate(&self, claims: &Self::Claims) -> Result<(), PasetoError>
fn validate(&self, claims: &Self::Claims) -> Result<(), PasetoError>
The validation to perform on the claims
Auto Trait Implementations§
impl<T> Freeze for ForAudience<T>where
T: Freeze,
impl<T> RefUnwindSafe for ForAudience<T>where
T: RefUnwindSafe,
impl<T> Send for ForAudience<T>where
T: Send,
impl<T> Sync for ForAudience<T>where
T: Sync,
impl<T> Unpin for ForAudience<T>where
T: Unpin,
impl<T> UnwindSafe for ForAudience<T>where
T: UnwindSafe,
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