pub struct UserScramCredentialsDescription { /* private fields */ }Expand description
Representation of all SASL/SCRAM credentials associated with a user that can be retrieved.
Implementations§
Source§impl UserScramCredentialsDescription
impl UserScramCredentialsDescription
Sourcepub fn new(
name: impl Into<String>,
credential_infos: Vec<ScramCredentialInfo>,
) -> Self
pub fn new( name: impl Into<String>, credential_infos: Vec<ScramCredentialInfo>, ) -> Self
Creates a new description.
name— the required user namecredential_infos— the required SASL/SCRAM credential representations for the user
Sourcepub fn credential_infos(&self) -> &[ScramCredentialInfo]
pub fn credential_infos(&self) -> &[ScramCredentialInfo]
Returns the always non-null list of SASL/SCRAM credential representations for the user.
Trait Implementations§
Source§impl Clone for UserScramCredentialsDescription
impl Clone for UserScramCredentialsDescription
Source§fn clone(&self) -> UserScramCredentialsDescription
fn clone(&self) -> UserScramCredentialsDescription
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 PartialEq for UserScramCredentialsDescription
impl PartialEq for UserScramCredentialsDescription
Source§fn eq(&self, other: &UserScramCredentialsDescription) -> bool
fn eq(&self, other: &UserScramCredentialsDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UserScramCredentialsDescription
impl StructuralPartialEq for UserScramCredentialsDescription
Auto Trait Implementations§
impl Freeze for UserScramCredentialsDescription
impl RefUnwindSafe for UserScramCredentialsDescription
impl Send for UserScramCredentialsDescription
impl Sync for UserScramCredentialsDescription
impl Unpin for UserScramCredentialsDescription
impl UnsafeUnpin for UserScramCredentialsDescription
impl UnwindSafe for UserScramCredentialsDescription
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