pub struct UserScramCredentialUpsertion { /* private fields */ }Expand description
A request to update/insert a SASL/SCRAM credential for a user.
Implementations§
Source§impl UserScramCredentialUpsertion
impl UserScramCredentialUpsertion
Sourcepub fn with_str(
user: impl Into<String>,
credential_info: ScramCredentialInfo,
password: &str,
) -> Self
pub fn with_str( user: impl Into<String>, credential_info: ScramCredentialInfo, password: &str, ) -> Self
Constructor that accepts a string password and generates a random salt.
Mirrors UserScramCredentialUpsertion(String, ScramCredentialInfo, String),
which encodes the password with UTF-8.
Sourcepub fn with_bytes(
user: impl Into<String>,
credential_info: ScramCredentialInfo,
password: Vec<u8>,
) -> Self
pub fn with_bytes( user: impl Into<String>, credential_info: ScramCredentialInfo, password: Vec<u8>, ) -> Self
Constructor that accepts a byte password and generates a random salt.
Mirrors UserScramCredentialUpsertion(String, ScramCredentialInfo, byte[]).
Sourcepub fn with_salt(
user: impl Into<String>,
credential_info: ScramCredentialInfo,
password: Vec<u8>,
salt: Vec<u8>,
) -> Self
pub fn with_salt( user: impl Into<String>, credential_info: ScramCredentialInfo, password: Vec<u8>, salt: Vec<u8>, ) -> Self
Constructor that accepts an explicit salt.
Mirrors UserScramCredentialUpsertion(String, ScramCredentialInfo, byte[], byte[]).
Sourcepub fn credential_info(&self) -> &ScramCredentialInfo
pub fn credential_info(&self) -> &ScramCredentialInfo
Returns the mechanism and iterations.
Trait Implementations§
Source§impl Clone for UserScramCredentialUpsertion
impl Clone for UserScramCredentialUpsertion
Source§fn clone(&self) -> UserScramCredentialUpsertion
fn clone(&self) -> UserScramCredentialUpsertion
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 UserScramCredentialUpsertion
impl Debug for UserScramCredentialUpsertion
Source§impl From<UserScramCredentialUpsertion> for UserScramCredentialAlteration
impl From<UserScramCredentialUpsertion> for UserScramCredentialAlteration
Source§fn from(upsertion: UserScramCredentialUpsertion) -> Self
fn from(upsertion: UserScramCredentialUpsertion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserScramCredentialUpsertion
impl RefUnwindSafe for UserScramCredentialUpsertion
impl Send for UserScramCredentialUpsertion
impl Sync for UserScramCredentialUpsertion
impl Unpin for UserScramCredentialUpsertion
impl UnsafeUnpin for UserScramCredentialUpsertion
impl UnwindSafe for UserScramCredentialUpsertion
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