[−][src]Enum biscuit::Validation
Defines whether a claim is validated or not
The generic type T is used as the "options" for validating claims and is
specific to each claim being validated. Refer to [biscuit::ValidationOptions
]
for the specifics of each claim.
Variants
Ignored
This claim is not validated
Validate(T)
Validate this claim with type T.
Refer to [biscuit::ValidationOptions
] for the specifics of each claim.
Methods
impl<T> Validation<T>
[src]
pub fn map<U, F>(self, f: F) -> Validation<U> where
F: FnOnce(T) -> U,
[src]
F: FnOnce(T) -> U,
Map the value to another validation requirement, similar to how .map works on iter()
Trait Implementations
impl<T: Copy> Copy for Validation<T>
[src]
impl<T: PartialEq> PartialEq<Validation<T>> for Validation<T>
[src]
fn eq(&self, other: &Validation<T>) -> bool
[src]
fn ne(&self, other: &Validation<T>) -> bool
[src]
impl<T> Default for Validation<T>
[src]
impl<T: Clone> Clone for Validation<T>
[src]
fn clone(&self) -> Validation<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Eq> Eq for Validation<T>
[src]
impl<T: Debug> Debug for Validation<T>
[src]
Auto Trait Implementations
impl<T> Send for Validation<T> where
T: Send,
T: Send,
impl<T> Sync for Validation<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,