pub struct ScramCredentialInfo { /* private fields */ }Expand description
Mechanism and iterations for a SASL/SCRAM credential associated with a user.
Implementations§
Source§impl ScramCredentialInfo
impl ScramCredentialInfo
Sourcepub fn new(mechanism: ScramMechanism, iterations: i32) -> Self
pub fn new(mechanism: ScramMechanism, iterations: i32) -> Self
Creates a new credential info.
mechanism— the required mechanismiterations— the number of iterations used when creating the credential
Sourcepub fn mechanism(&self) -> ScramMechanism
pub fn mechanism(&self) -> ScramMechanism
Returns the mechanism.
Sourcepub fn iterations(&self) -> i32
pub fn iterations(&self) -> i32
Returns the number of iterations used when creating the credential.
Trait Implementations§
Source§impl Clone for ScramCredentialInfo
impl Clone for ScramCredentialInfo
Source§fn clone(&self) -> ScramCredentialInfo
fn clone(&self) -> ScramCredentialInfo
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 ScramCredentialInfo
impl Debug for ScramCredentialInfo
Source§impl Display for ScramCredentialInfo
impl Display for ScramCredentialInfo
Source§impl Hash for ScramCredentialInfo
impl Hash for ScramCredentialInfo
Source§impl PartialEq for ScramCredentialInfo
impl PartialEq for ScramCredentialInfo
impl Eq for ScramCredentialInfo
impl StructuralPartialEq for ScramCredentialInfo
Auto Trait Implementations§
impl Freeze for ScramCredentialInfo
impl RefUnwindSafe for ScramCredentialInfo
impl Send for ScramCredentialInfo
impl Sync for ScramCredentialInfo
impl Unpin for ScramCredentialInfo
impl UnsafeUnpin for ScramCredentialInfo
impl UnwindSafe for ScramCredentialInfo
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more