pub enum AuthRef {
TokenEnv {
token_env: String,
},
Keyring {
keyring: String,
},
Basic {
user_env: String,
password_env: String,
},
}Expand description
Credential reference — the three supported forms, untagged so the TOML
stays flat: auth = { token_env = "X" }, auth = { keyring = "profile:prod" }, or auth = { user_env = "U", password_env = "P" }.
Variants§
TokenEnv
Token lives in this env var.
Keyring
Token lives in the OS keyring (service ignition-cli) under this
user string, e.g. "profile:prod".
Basic
Basic pair from two env vars.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthRef
impl<'de> Deserialize<'de> for AuthRef
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
impl StructuralPartialEq for AuthRef
Auto Trait Implementations§
impl Freeze for AuthRef
impl RefUnwindSafe for AuthRef
impl Send for AuthRef
impl Sync for AuthRef
impl Unpin for AuthRef
impl UnsafeUnpin for AuthRef
impl UnwindSafe for AuthRef
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