pub enum CredentialSource {
Env {
variable: String,
},
Basic {
username: String,
password_env: String,
},
Netrc,
OnePassword {
reference: String,
},
Unrecognized(Value),
}Expand description
Where an entry’s secret comes from. Every known variant names a secret indirectly; the file never holds one.
Variants§
Env
Bearer token read from an environment variable at request time.
Basic
HTTP Basic with the password read from an environment variable.
Netrc
~/.netrc, looked up by the requested host.
OnePassword
op read <reference> at request time (feature onepassword).
Unrecognized(Value)
A type this build does not know. Preserved exactly, including its
type, so the file round-trips. configured_provider skips it and
reports it for a startup warning; it grants no credential and no
identity, and its content is never inspected or printed.
Implementations§
Trait Implementations§
Source§impl Clone for CredentialSource
impl Clone for CredentialSource
Source§impl Debug for CredentialSource
impl Debug for CredentialSource
Source§impl PartialEq for CredentialSource
impl PartialEq for CredentialSource
impl StructuralPartialEq for CredentialSource
Auto Trait Implementations§
impl Freeze for CredentialSource
impl RefUnwindSafe for CredentialSource
impl Send for CredentialSource
impl Sync for CredentialSource
impl Unpin for CredentialSource
impl UnsafeUnpin for CredentialSource
impl UnwindSafe for CredentialSource
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