pub enum TextSource {
Inline(SecretString),
File(PathBuf),
}Expand description
Text written inline or read from a file: "value" or { file = "/path" }.
One field per credential, rather than an inline field and a _file twin
that must not both be set: the value’s shape makes the choice, so it can
never be ambiguous. Environment values use the same two spellings; a value
that parses as { file = "..." } names a file, anything else is literal.
Variants§
Inline(SecretString)
File(PathBuf)
Implementations§
Source§impl TextSource
impl TextSource
Trait Implementations§
Source§impl Clone for TextSource
impl Clone for TextSource
Source§impl Debug for TextSource
impl Debug for TextSource
Source§impl<'de> Deserialize<'de> for TextSource
impl<'de> Deserialize<'de> for TextSource
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextSource
impl RefUnwindSafe for TextSource
impl Send for TextSource
impl Sync for TextSource
impl Unpin for TextSource
impl UnsafeUnpin for TextSource
impl UnwindSafe for TextSource
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