pub enum AuthRequirement {
None,
Optional,
Required,
}
Expand description
Authorization requirement for an API request.
Variants§
None
No authorization required.
Optional
Authorization is optional. Request may behave differently based on the presence of a token.
Required
Authorization is required. Request will fail if no token is provided.
Trait Implementations§
Source§impl Clone for AuthRequirement
impl Clone for AuthRequirement
Source§fn clone(&self) -> AuthRequirement
fn clone(&self) -> AuthRequirement
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 AuthRequirement
impl Debug for AuthRequirement
Source§impl Default for AuthRequirement
impl Default for AuthRequirement
Source§fn default() -> AuthRequirement
fn default() -> AuthRequirement
Returns the “default value” for a type. Read more
Source§impl Hash for AuthRequirement
impl Hash for AuthRequirement
Source§impl Ord for AuthRequirement
impl Ord for AuthRequirement
Source§fn cmp(&self, other: &AuthRequirement) -> Ordering
fn cmp(&self, other: &AuthRequirement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AuthRequirement
impl PartialEq for AuthRequirement
Source§impl PartialOrd for AuthRequirement
impl PartialOrd for AuthRequirement
impl Copy for AuthRequirement
impl Eq for AuthRequirement
impl StructuralPartialEq for AuthRequirement
Auto Trait Implementations§
impl Freeze for AuthRequirement
impl RefUnwindSafe for AuthRequirement
impl Send for AuthRequirement
impl Sync for AuthRequirement
impl Unpin for AuthRequirement
impl UnwindSafe for AuthRequirement
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