pub enum RegistryAuth {
Anonymous,
Basic(String, String),
Bearer(String),
}
Expand description
A method for authenticating to a registry
Variants§
Anonymous
Access the registry anonymously
Basic(String, String)
Access the registry using HTTP Basic authentication
Bearer(String)
Access the registry using Bearer token 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 · 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 PartialEq for RegistryAuth
impl PartialEq for RegistryAuth
impl Eq for RegistryAuth
impl StructuralPartialEq for RegistryAuth
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