pub struct RegistryCredential {
pub id: String,
pub registry: String,
pub username: String,
pub auth_type: RegistryAuthType,
}Expand description
Docker/OCI registry credential metadata.
The actual password/token is stored separately as a secret in the
registry_credentials scope, keyed by id.
Fields§
§id: StringUnique identifier (UUID v4).
registry: StringRegistry hostname, e.g. "docker.io", "ghcr.io".
username: StringUsername for authentication.
auth_type: RegistryAuthTypeWhether this credential uses basic auth or a bearer token.
Trait Implementations§
Source§impl Clone for RegistryCredential
impl Clone for RegistryCredential
Source§fn clone(&self) -> RegistryCredential
fn clone(&self) -> RegistryCredential
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 RegistryCredential
impl Debug for RegistryCredential
Source§impl<'de> Deserialize<'de> for RegistryCredential
impl<'de> Deserialize<'de> for RegistryCredential
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 RegistryCredential
impl RefUnwindSafe for RegistryCredential
impl Send for RegistryCredential
impl Sync for RegistryCredential
impl Unpin for RegistryCredential
impl UnsafeUnpin for RegistryCredential
impl UnwindSafe for RegistryCredential
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