pub enum AuthParams {
Root {
username: String,
password: String,
},
Namespace {
username: String,
password: String,
},
Database {
username: String,
password: String,
},
Scope {
namespace: String,
database: String,
scope: String,
params: Value,
},
Token(String),
}Expand description
Authentication parameters
Variants§
Root
Root authentication
Namespace
Namespace authentication
Database
Database authentication
Scope
Scope authentication
Token(String)
JWT token authentication
Trait Implementations§
Source§impl Clone for AuthParams
impl Clone for AuthParams
Source§fn clone(&self) -> AuthParams
fn clone(&self) -> AuthParams
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 moreAuto Trait Implementations§
impl Freeze for AuthParams
impl RefUnwindSafe for AuthParams
impl Send for AuthParams
impl Sync for AuthParams
impl Unpin for AuthParams
impl UnsafeUnpin for AuthParams
impl UnwindSafe for AuthParams
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