pub struct DefineUserStatement {
pub kind: DefineKind,
pub name: Expr,
pub base: Base,
pub hash: String,
pub code: String,
pub roles: Vec<String>,
pub duration: UserDuration,
pub comment: Expr,
pub scram: Option<ScramCredential>,
}Fields§
§kind: DefineKind§name: Expr§base: Base§hash: String§code: String§roles: Vec<String>§duration: UserDuration§comment: Expr§scram: Option<ScramCredential>SCRAM-SHA-256 verifier material, derived alongside hash from a plaintext
password (or supplied via PASSSCRAM). None for PASSHASH-only users.
Trait 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 From<DefineUserStatement> for DefineUserStatement
impl From<DefineUserStatement> for DefineUserStatement
Source§fn from(v: DefineUserStatement) -> Self
fn from(v: DefineUserStatement) -> Self
Converts to this type from the input type.
Source§impl From<DefineUserStatement> for DefineUserStatement
impl From<DefineUserStatement> for DefineUserStatement
Source§fn from(v: DefineUserStatement) -> Self
fn from(v: DefineUserStatement) -> Self
Converts to this type from the input type.
Source§impl Hash for DefineUserStatement
impl Hash for DefineUserStatement
Source§impl PartialEq for DefineUserStatement
impl PartialEq for DefineUserStatement
impl StructuralPartialEq for DefineUserStatement
Source§impl ToSql for DefineUserStatement
impl ToSql for DefineUserStatement
Source§impl<V: Visitor> Visit<V> for DefineUserStatement
impl<V: Visitor> Visit<V> 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.