pub enum ValidationType {
Reject,
Ignore,
Allow,
Require,
}Variants§
Reject
Require the claim to be absent and fail if it is present.
Ignore
Ignore the claim.
Allow
If the claim is present, it must be valid.
Require
Require the claim to be present and be valid.
Trait Implementations§
Source§impl Clone for ValidationType
impl Clone for ValidationType
Source§fn clone(&self) -> ValidationType
fn clone(&self) -> ValidationType
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationType
impl Debug for ValidationType
Source§impl Default for ValidationType
impl Default for ValidationType
Source§fn default() -> ValidationType
fn default() -> ValidationType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidationType
impl<'de> Deserialize<'de> for ValidationType
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 ValidationType
impl PartialEq for ValidationType
Source§impl Serialize for ValidationType
impl Serialize for ValidationType
impl Eq for ValidationType
impl StructuralPartialEq for ValidationType
Auto Trait Implementations§
impl Freeze for ValidationType
impl RefUnwindSafe for ValidationType
impl Send for ValidationType
impl Sync for ValidationType
impl Unpin for ValidationType
impl UnwindSafe for ValidationType
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