pub enum PasswordLockOption {
Show 16 variants
AccountLock {
meta: Meta,
},
AccountUnlock {
meta: Meta,
},
PasswordExpire {
meta: Meta,
},
PasswordExpireDefault {
meta: Meta,
},
PasswordExpireNever {
meta: Meta,
},
PasswordExpireInterval {
days: Literal,
meta: Meta,
},
PasswordHistory {
count: Literal,
meta: Meta,
},
PasswordHistoryDefault {
meta: Meta,
},
PasswordReuseInterval {
days: Literal,
meta: Meta,
},
PasswordReuseIntervalDefault {
meta: Meta,
},
PasswordRequireCurrent {
meta: Meta,
},
PasswordRequireCurrentDefault {
meta: Meta,
},
PasswordRequireCurrentOptional {
meta: Meta,
},
FailedLoginAttempts {
count: Literal,
meta: Meta,
},
PasswordLockTime {
days: Literal,
meta: Meta,
},
PasswordLockTimeUnbounded {
meta: Meta,
},
}Expand description
One password-management / account-lock option on a CREATE/ALTER USER. Numeric bodies
are unsigned-integer Literals.
Variants§
AccountLock
ACCOUNT LOCK.
AccountUnlock
ACCOUNT UNLOCK.
PasswordExpire
PASSWORD EXPIRE — expire the password immediately.
PasswordExpireDefault
PASSWORD EXPIRE DEFAULT — use the global default_password_lifetime.
PasswordExpireNever
PASSWORD EXPIRE NEVER.
PasswordExpireInterval
PASSWORD EXPIRE INTERVAL <n> DAY.
PasswordHistory
PASSWORD HISTORY <n> — remember the last n passwords.
Fields
PasswordHistoryDefault
PASSWORD HISTORY DEFAULT.
PasswordReuseInterval
PASSWORD REUSE INTERVAL <n> DAY.
Fields
PasswordReuseIntervalDefault
PASSWORD REUSE INTERVAL DEFAULT.
PasswordRequireCurrent
PASSWORD REQUIRE CURRENT — a password change must verify the current password.
PasswordRequireCurrentDefault
PASSWORD REQUIRE CURRENT DEFAULT.
PasswordRequireCurrentOptional
PASSWORD REQUIRE CURRENT OPTIONAL.
FailedLoginAttempts
FAILED_LOGIN_ATTEMPTS <n>.
PasswordLockTime
PASSWORD_LOCK_TIME <n> — lock duration in days after FAILED_LOGIN_ATTEMPTS.
PasswordLockTimeUnbounded
PASSWORD_LOCK_TIME UNBOUNDED — lock until manually unlocked.
Trait Implementations§
Source§impl Clone for PasswordLockOption
impl Clone for PasswordLockOption
Source§fn clone(&self) -> PasswordLockOption
fn clone(&self) -> PasswordLockOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PasswordLockOption
impl Debug for PasswordLockOption
Source§impl<'de> Deserialize<'de> for PasswordLockOption
impl<'de> Deserialize<'de> for PasswordLockOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PasswordLockOption
Source§impl Hash for PasswordLockOption
impl Hash for PasswordLockOption
Source§impl PartialEq for PasswordLockOption
impl PartialEq for PasswordLockOption
Source§impl Render for PasswordLockOption
impl Render for PasswordLockOption
Source§fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for PasswordLockOption
impl Serialize for PasswordLockOption
Source§impl Spanned for PasswordLockOption
impl Spanned for PasswordLockOption
impl StructuralPartialEq for PasswordLockOption
Auto Trait Implementations§
impl Freeze for PasswordLockOption
impl RefUnwindSafe for PasswordLockOption
impl Send for PasswordLockOption
impl Sync for PasswordLockOption
impl Unpin for PasswordLockOption
impl UnsafeUnpin for PasswordLockOption
impl UnwindSafe for PasswordLockOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.