pub enum AuthEntry {
ApiKey {
key: String,
},
EnvVar {
name: String,
},
Command {
command: String,
},
}Expand description
A single authentication entry describing how to obtain an API key.
Variants§
ApiKey
A raw API key stored directly in the config.
EnvVar
An environment variable containing the API key.
Command
A shell command whose stdout is the API key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthEntry
impl<'de> Deserialize<'de> for AuthEntry
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
Auto Trait Implementations§
impl Freeze for AuthEntry
impl RefUnwindSafe for AuthEntry
impl Send for AuthEntry
impl Sync for AuthEntry
impl Unpin for AuthEntry
impl UnwindSafe for AuthEntry
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