pub struct AuthSettings {
pub allow_cleartext_password: bool,
pub allow_md5_password: bool,
pub allow_scram_sha_256: bool,
pub allow_kerberos_v5: bool,
pub allow_gssapi: bool,
pub allow_sspi: bool,
pub channel_binding: ScramChannelBindingMode,
}Expand description
Password-auth mechanism policy.
Defaults allow all PostgreSQL password mechanisms for compatibility.
Fields§
§allow_cleartext_password: boolAllow server-requested cleartext password auth.
allow_md5_password: boolAllow server-requested MD5 password auth.
allow_scram_sha_256: boolAllow server-requested SCRAM auth.
allow_kerberos_v5: boolAllow server-requested Kerberos V5 auth flow.
allow_gssapi: boolAllow server-requested GSSAPI auth flow.
allow_sspi: boolAllow server-requested SSPI auth flow.
channel_binding: ScramChannelBindingModeSCRAM channel-binding requirement.
Implementations§
Source§impl AuthSettings
impl AuthSettings
Sourcepub fn scram_only() -> Self
pub fn scram_only() -> Self
Restrictive mode: SCRAM-only password auth.
Sourcepub fn gssapi_only() -> Self
pub fn gssapi_only() -> Self
Restrictive mode: enterprise Kerberos/GSS only (no password auth).
Trait Implementations§
Source§impl Clone for AuthSettings
impl Clone for AuthSettings
Source§fn clone(&self) -> AuthSettings
fn clone(&self) -> AuthSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthSettings
impl Debug for AuthSettings
Source§impl Default for AuthSettings
impl Default for AuthSettings
Source§impl PartialEq for AuthSettings
impl PartialEq for AuthSettings
impl Copy for AuthSettings
impl Eq for AuthSettings
impl StructuralPartialEq for AuthSettings
Auto Trait Implementations§
impl Freeze for AuthSettings
impl RefUnwindSafe for AuthSettings
impl Send for AuthSettings
impl Sync for AuthSettings
impl Unpin for AuthSettings
impl UnsafeUnpin for AuthSettings
impl UnwindSafe for AuthSettings
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§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.