pub struct AlterUserStatement {
pub name: Expr,
pub base: Base,
pub if_exists: bool,
pub hash: Option<String>,
pub scram: Option<Option<ScramCredential>>,
pub roles: AlterKind<Vec<String>>,
pub token_duration: AlterKind<Option<Duration>>,
pub session_duration: AlterKind<Option<Duration>>,
pub comment: AlterKind<String>,
}Fields§
§name: Expr§base: Base§if_exists: bool§hash: Option<String>§scram: Option<Option<ScramCredential>>SCRAM verifier change. Outer Option: whether the SCRAM field is being
changed at all; inner Option: the new value (None clears it — e.g.
when the password is set via PASSHASH, invalidating any prior verifier).
roles: AlterKind<Vec<String>>§token_duration: AlterKind<Option<Duration>>§session_duration: AlterKind<Option<Duration>>§comment: AlterKind<String>Trait Implementations§
Source§impl Clone for AlterUserStatement
impl Clone for AlterUserStatement
Source§impl Debug for AlterUserStatement
impl Debug for AlterUserStatement
Source§impl Default for AlterUserStatement
impl Default for AlterUserStatement
impl Eq for AlterUserStatement
Source§impl From<AlterUserStatement> for AlterUserStatement
impl From<AlterUserStatement> for AlterUserStatement
Source§fn from(v: AlterUserStatement) -> Self
fn from(v: AlterUserStatement) -> Self
Converts to this type from the input type.
Source§impl From<AlterUserStatement> for AlterUserStatement
impl From<AlterUserStatement> for AlterUserStatement
Source§fn from(v: AlterUserStatement) -> Self
fn from(v: AlterUserStatement) -> Self
Converts to this type from the input type.
Source§impl Hash for AlterUserStatement
impl Hash for AlterUserStatement
Source§impl PartialEq for AlterUserStatement
impl PartialEq for AlterUserStatement
impl StructuralPartialEq for AlterUserStatement
Source§impl ToSql for AlterUserStatement
impl ToSql for AlterUserStatement
Source§impl<V: Visitor> Visit<V> for AlterUserStatement
impl<V: Visitor> Visit<V> for AlterUserStatement
Auto Trait Implementations§
impl !Freeze for AlterUserStatement
impl RefUnwindSafe for AlterUserStatement
impl Send for AlterUserStatement
impl Sync for AlterUserStatement
impl Unpin for AlterUserStatement
impl UnsafeUnpin for AlterUserStatement
impl UnwindSafe for AlterUserStatement
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.