pub enum ValidationMode {
Strict,
Permissive,
}
Expand description
Used to select how a policy will be validated.
Variants§
Trait Implementations§
source§impl Clone for ValidationMode
impl Clone for ValidationMode
source§fn clone(&self) -> ValidationMode
fn clone(&self) -> ValidationMode
Returns a copy 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 ValidationMode
impl Debug for ValidationMode
source§impl Default for ValidationMode
impl Default for ValidationMode
source§fn default() -> ValidationMode
fn default() -> ValidationMode
Returns the “default value” for a type. Read more
source§impl PartialEq<ValidationMode> for ValidationMode
impl PartialEq<ValidationMode> for ValidationMode
source§fn eq(&self, other: &ValidationMode) -> bool
fn eq(&self, other: &ValidationMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ValidationMode
impl Serialize for ValidationMode
impl Copy for ValidationMode
impl Eq for ValidationMode
impl StructuralEq for ValidationMode
impl StructuralPartialEq for ValidationMode
Auto Trait Implementations§
impl RefUnwindSafe for ValidationMode
impl Send for ValidationMode
impl Sync for ValidationMode
impl Unpin for ValidationMode
impl UnwindSafe for ValidationMode
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.