pub struct PasswordAuthenticator {
pub username: String,
pub password: String,
}Fields§
§username: String§password: StringImplementations§
Source§impl PasswordAuthenticator
impl PasswordAuthenticator
pub fn get_credentials( &self, _service_type: &ServiceType, _host_port: String, ) -> Result<UserPassPair>
pub fn get_auth_mechanisms(&self, tls_enabled: bool) -> Vec<AuthMechanism>
Trait Implementations§
Source§impl Clone for PasswordAuthenticator
impl Clone for PasswordAuthenticator
Source§fn clone(&self) -> PasswordAuthenticator
fn clone(&self) -> PasswordAuthenticator
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 From<PasswordAuthenticator> for Authenticator
impl From<PasswordAuthenticator> for Authenticator
Source§fn from(value: PasswordAuthenticator) -> Self
fn from(value: PasswordAuthenticator) -> Self
Converts to this type from the input type.
Source§impl Hash for PasswordAuthenticator
impl Hash for PasswordAuthenticator
Source§impl Ord for PasswordAuthenticator
impl Ord for PasswordAuthenticator
Source§fn cmp(&self, other: &PasswordAuthenticator) -> Ordering
fn cmp(&self, other: &PasswordAuthenticator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PasswordAuthenticator
impl PartialEq for PasswordAuthenticator
Source§impl PartialOrd for PasswordAuthenticator
impl PartialOrd for PasswordAuthenticator
impl Eq for PasswordAuthenticator
impl StructuralPartialEq for PasswordAuthenticator
Auto Trait Implementations§
impl Freeze for PasswordAuthenticator
impl RefUnwindSafe for PasswordAuthenticator
impl Send for PasswordAuthenticator
impl Sync for PasswordAuthenticator
impl Unpin for PasswordAuthenticator
impl UnsafeUnpin for PasswordAuthenticator
impl UnwindSafe for PasswordAuthenticator
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