pub struct RegistryAuth {
pub username: String,
pub password: String,
}Expand description
Registry authentication credentials for pulling images.
Debug is hand-written to redact the password: this value is carried inside
AgentRequest::Pull, and any {:?} of that request (e.g. a tracing span)
would otherwise serialize the token verbatim into the machine’s console log,
which is exposed over the logs API.
Fields§
§username: StringUsername for authentication.
password: StringPassword or token for authentication.
Trait Implementations§
Source§impl Clone for RegistryAuth
impl Clone for RegistryAuth
Source§fn clone(&self) -> RegistryAuth
fn clone(&self) -> RegistryAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegistryAuth
impl Debug for RegistryAuth
Source§impl<'de> Deserialize<'de> for RegistryAuth
impl<'de> Deserialize<'de> for RegistryAuth
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 RegistryAuth
impl RefUnwindSafe for RegistryAuth
impl Send for RegistryAuth
impl Sync for RegistryAuth
impl Unpin for RegistryAuth
impl UnsafeUnpin for RegistryAuth
impl UnwindSafe for RegistryAuth
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