pub enum RegistryAuth {
Anonymous,
Basic {
username: String,
password: String,
},
}Expand description
Authentication credentials for a registry
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 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 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