pub enum ProviderAuth {
None,
BearerEnv {
env: String,
},
OptionalBearerEnv {
env: String,
},
HeaderEnv {
header: String,
env: String,
},
}Expand description
Authentication shape used by a provider profile.
Variants§
None
The provider does not need authentication by default.
BearerEnv
The provider expects an Authorization: Bearer <secret> value read from
an environment variable.
OptionalBearerEnv
The provider may accept an Authorization: Bearer <secret> value, but
does not require one by default.
HeaderEnv
The provider expects a named header value read from an environment variable.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderAuth
impl Clone for ProviderAuth
Source§fn clone(&self) -> ProviderAuth
fn clone(&self) -> ProviderAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderAuth
impl Debug for ProviderAuth
impl Eq for ProviderAuth
Source§impl PartialEq for ProviderAuth
impl PartialEq for ProviderAuth
impl StructuralPartialEq for ProviderAuth
Auto Trait Implementations§
impl Freeze for ProviderAuth
impl RefUnwindSafe for ProviderAuth
impl Send for ProviderAuth
impl Sync for ProviderAuth
impl Unpin for ProviderAuth
impl UnsafeUnpin for ProviderAuth
impl UnwindSafe for ProviderAuth
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