pub struct Credential {
pub username: String,
pub password: SecretValue,
}Expand description
The answer to a get.
Fields§
§username: String§password: SecretValueImplementations§
Source§impl Credential
impl Credential
Sourcepub fn to_protocol(&self) -> String
pub fn to_protocol(&self) -> String
The protocol’s output: username=... and password=... lines.
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§impl Debug for Credential
impl Debug for Credential
impl Eq for Credential
Source§impl PartialEq for Credential
impl PartialEq for Credential
impl StructuralPartialEq for Credential
Auto Trait Implementations§
impl Forget for Credential
impl Freeze for Credential
impl Move for Credential
impl RefUnwindSafe for Credential
impl Send for Credentialwhere
RawVecInner: Send,
impl Sync for Credentialwhere
RawVecInner: Sync,
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credentialwhere
RawVecInner: UnwindSafe,
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.