pub enum AuthSource {
Anonymous,
Basic {
username: String,
password: String,
},
DockerConfig,
EnvVar {
username_var: String,
password_var: String,
},
}Expand description
Authentication source configuration
Variants§
Anonymous
No authentication
Basic
Basic authentication with username and password
DockerConfig
Load from Docker config.json
EnvVar
Load from environment variables
Trait Implementations§
Source§impl Clone for AuthSource
impl Clone for AuthSource
Source§fn clone(&self) -> AuthSource
fn clone(&self) -> AuthSource
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 AuthSource
impl Debug for AuthSource
Source§impl Default for AuthSource
impl Default for AuthSource
Source§fn default() -> AuthSource
fn default() -> AuthSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthSource
impl<'de> Deserialize<'de> for AuthSource
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 PartialEq for AuthSource
impl PartialEq for AuthSource
Source§impl Serialize for AuthSource
impl Serialize for AuthSource
impl StructuralPartialEq for AuthSource
Auto Trait Implementations§
impl Freeze for AuthSource
impl RefUnwindSafe for AuthSource
impl Send for AuthSource
impl Sync for AuthSource
impl Unpin for AuthSource
impl UnsafeUnpin for AuthSource
impl UnwindSafe for AuthSource
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