pub enum TokenScope {
Read,
Write,
}Expand description
CAS token scope.
Variants§
Read
Read-only CAS access.
Write
Write access, including the read behavior required by upload clients.
Implementations§
Source§impl TokenScope
impl TokenScope
Sourcepub const fn allows_read(self) -> bool
pub const fn allows_read(self) -> bool
Returns true when this scope can perform read operations.
Sourcepub const fn allows_write(self) -> bool
pub const fn allows_write(self) -> bool
Returns true when this scope can perform write operations.
Trait Implementations§
Source§impl Clone for TokenScope
impl Clone for TokenScope
Source§fn clone(&self) -> TokenScope
fn clone(&self) -> TokenScope
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 Copy for TokenScope
Source§impl Debug for TokenScope
impl Debug for TokenScope
Source§impl<'de> Deserialize<'de> for TokenScope
impl<'de> Deserialize<'de> for TokenScope
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
impl Eq for TokenScope
Source§impl PartialEq for TokenScope
impl PartialEq for TokenScope
Source§fn eq(&self, other: &TokenScope) -> bool
fn eq(&self, other: &TokenScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TokenScope
impl Serialize for TokenScope
impl StructuralPartialEq for TokenScope
Auto Trait Implementations§
impl Freeze for TokenScope
impl RefUnwindSafe for TokenScope
impl Send for TokenScope
impl Sync for TokenScope
impl Unpin for TokenScope
impl UnsafeUnpin for TokenScope
impl UnwindSafe for TokenScope
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