pub struct AuthEntry {
pub auth: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub identity_token: Option<String>,
pub registry_token: Option<String>,
}Expand description
An auth entry from the Docker config’s “auths” section.
Fields§
§auth: Option<String>Base64-encoded “username:password” string.
username: Option<String>Username (if stored separately).
password: Option<String>Password (if stored separately).
identity_token: Option<String>Identity token for OAuth2.
registry_token: Option<String>Registry token (deprecated).
Implementations§
Source§impl AuthEntry
impl AuthEntry
Sourcepub fn to_credential(&self) -> Option<Credential>
pub fn to_credential(&self) -> Option<Credential>
Converts this auth entry to a Credential.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthEntry
impl<'de> Deserialize<'de> for AuthEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthEntry
impl RefUnwindSafe for AuthEntry
impl Send for AuthEntry
impl Sync for AuthEntry
impl Unpin for AuthEntry
impl UnsafeUnpin for AuthEntry
impl UnwindSafe for AuthEntry
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