pub enum RegistryAuthType {
Basic,
Token,
}Expand description
Authentication scheme for a RegistryAuth.
Variants§
Basic
HTTP Basic authentication (username + password). Default.
Token
Bearer token authentication. password carries the token; username
is typically a placeholder such as "oauth2accesstoken" or "<token>".
Trait Implementations§
Source§impl Clone for RegistryAuthType
impl Clone for RegistryAuthType
Source§fn clone(&self) -> RegistryAuthType
fn clone(&self) -> RegistryAuthType
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 ComposeSchema for RegistryAuthType
impl ComposeSchema for RegistryAuthType
Source§impl Debug for RegistryAuthType
impl Debug for RegistryAuthType
Source§impl Default for RegistryAuthType
impl Default for RegistryAuthType
Source§fn default() -> RegistryAuthType
fn default() -> RegistryAuthType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegistryAuthType
impl<'de> Deserialize<'de> for RegistryAuthType
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 RegistryAuthType
impl PartialEq for RegistryAuthType
Source§impl Serialize for RegistryAuthType
impl Serialize for RegistryAuthType
Source§impl ToSchema for RegistryAuthType
impl ToSchema for RegistryAuthType
impl Copy for RegistryAuthType
impl Eq for RegistryAuthType
impl StructuralPartialEq for RegistryAuthType
Auto Trait Implementations§
impl Freeze for RegistryAuthType
impl RefUnwindSafe for RegistryAuthType
impl Send for RegistryAuthType
impl Sync for RegistryAuthType
impl Unpin for RegistryAuthType
impl UnsafeUnpin for RegistryAuthType
impl UnwindSafe for RegistryAuthType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.