pub struct DefineUserStatement {
pub kind: DefineKind,
pub name: Expr,
pub base: Base,
pub pass_type: PassType,
pub scram: Option<String>,
pub roles: Vec<String>,
pub token_duration: Expr,
pub session_duration: Expr,
pub comment: Expr,
}Fields§
§kind: DefineKind§name: Expr§base: Base§pass_type: PassType§scram: Option<String>Optional SCRAM-SHA-256 verifier string (SCRAM-SHA-256$...). Additive:
it may coexist with PASSHASH, which is how export/import round-trips
both the Argon2 hash and the SCRAM verifier. When PASSWORD is given and
this is None, the verifier is derived from the plaintext.
roles: Vec<String>§token_duration: Expr§session_duration: Expr§comment: ExprTrait Implementations§
Source§impl Clone for DefineUserStatement
impl Clone for DefineUserStatement
Source§impl Debug for DefineUserStatement
impl Debug for DefineUserStatement
Source§impl Default for DefineUserStatement
impl Default for DefineUserStatement
impl Eq for DefineUserStatement
Source§impl PartialEq for DefineUserStatement
impl PartialEq for DefineUserStatement
impl StructuralPartialEq for DefineUserStatement
Source§impl ToSql for DefineUserStatement
impl ToSql for DefineUserStatement
Auto Trait Implementations§
impl !Freeze for DefineUserStatement
impl RefUnwindSafe for DefineUserStatement
impl Send for DefineUserStatement
impl Sync for DefineUserStatement
impl Unpin for DefineUserStatement
impl UnsafeUnpin for DefineUserStatement
impl UnwindSafe for DefineUserStatement
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
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.