pub enum ScopeRequirement<T> {
Required(T),
Optional(T),
Forbidden,
}Expand description
Provider or operation requirement for one authentication-scope field.
Variants§
Required(T)
The credential must contain the exact expected value.
Optional(T)
The credential may omit the field; a supplied value must match.
Forbidden
The credential must omit the field.
Trait Implementations§
Source§impl<T: Clone> Clone for ScopeRequirement<T>
impl<T: Clone> Clone for ScopeRequirement<T>
Source§fn clone(&self) -> ScopeRequirement<T>
fn clone(&self) -> ScopeRequirement<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for ScopeRequirement<T>
Source§impl<T: Debug> Debug for ScopeRequirement<T>
impl<T: Debug> Debug for ScopeRequirement<T>
impl<T: Eq> Eq for ScopeRequirement<T>
Source§impl<T: PartialEq> PartialEq for ScopeRequirement<T>
impl<T: PartialEq> PartialEq for ScopeRequirement<T>
impl<T: PartialEq> StructuralPartialEq for ScopeRequirement<T>
Auto Trait Implementations§
impl<T> Freeze for ScopeRequirement<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScopeRequirement<T>where
T: RefUnwindSafe,
impl<T> Send for ScopeRequirement<T>where
T: Send,
impl<T> Sync for ScopeRequirement<T>where
T: Sync,
impl<T> Unpin for ScopeRequirement<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScopeRequirement<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ScopeRequirement<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