pub enum AuthLevel {
Root,
Namespace,
Database,
}Expand description
Where a SurrealDB user is defined, which decides how to sign in.
Variants§
Root
A root user (surreal start --user ... --pass ...).
Namespace
A user defined on the namespace (DEFINE USER ... ON NAMESPACE).
Database
A user defined on the database (DEFINE USER ... ON DATABASE), the
least privileged choice for production.
Trait Implementations§
impl Copy for AuthLevel
impl Eq for AuthLevel
impl StructuralPartialEq for AuthLevel
Auto Trait Implementations§
impl Freeze for AuthLevel
impl RefUnwindSafe for AuthLevel
impl Send for AuthLevel
impl Sync for AuthLevel
impl Unpin for AuthLevel
impl UnsafeUnpin for AuthLevel
impl UnwindSafe for AuthLevel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.