Expand description
Specifies the current authentication for the datastore execution context.
Variants
No
Specifies that the user is not authenticated
Kv
Specifies that the user is authenticated with full root permissions
Ns(String)
Specifies that the user is has full permissions for a particular Namespace
Db(String, String)
Specifies that the user is has full permissions for a particular Namespace and Database
Sc(String, String, String)
Specifies that the user is has full permissions for a particular Namespace, Database, and Scope
Implementations
sourceimpl Auth
impl Auth
sourcepub fn is_kv(&self) -> bool
pub fn is_kv(&self) -> bool
Checks whether the current authentication has root level permissions
sourcepub fn is_ns(&self) -> bool
pub fn is_ns(&self) -> bool
Checks whether the current authentication has namespace level permissions
sourcepub fn is_db(&self) -> bool
pub fn is_db(&self) -> bool
Checks whether the current authentication has database level permissions
Trait Implementations
sourceimpl PartialOrd<Auth> for Auth
impl PartialOrd<Auth> for Auth
sourcefn partial_cmp(&self, other: &Auth) -> Option<Ordering>
fn partial_cmp(&self, other: &Auth) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Auth
impl StructuralEq for Auth
impl StructuralPartialEq for Auth
Auto Trait Implementations
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnwindSafe for Auth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more