pub enum RegistryAuth {
Anonymous,
Basic {
username: String,
password: String,
},
}Expand description
Authentication credentials for OCI registry access.
Resolution chain (in Registry):
- Explicit
RegistryAuthviaRegistry::with_auth() - OS keyring / credential store (when configured by the caller)
- Global config
registries.auth(store,password_env, orsecret_name) - Docker credential store/config fallback (when enabled by the caller)
Anonymousfallback
Variants§
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 · 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 Default for RegistryAuth
impl Default for RegistryAuth
Source§fn default() -> RegistryAuth
fn default() -> RegistryAuth
Returns the “default value” for a type. Read more
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
Source§impl From<&RegistryAuth> for RegistryAuth
impl From<&RegistryAuth> for RegistryAuth
Source§fn from(auth: &RegistryAuth) -> Self
fn from(auth: &RegistryAuth) -> Self
Converts to this type from the input type.
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