pub struct FileSecretProvider {
pub path: String,
}Expand description
Loads secrets from a file in KEY=VALUE format (one per line).
Lines starting with # are treated as comments. Empty lines are skipped.
Leading and trailing whitespace on keys and values is trimmed.
Fields§
§path: StringPath to the secrets file.
Implementations§
Trait Implementations§
Source§impl Clone for FileSecretProvider
impl Clone for FileSecretProvider
Source§fn clone(&self) -> FileSecretProvider
fn clone(&self) -> FileSecretProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 FileSecretProvider
impl Debug for FileSecretProvider
Source§impl<'de> Deserialize<'de> for FileSecretProvider
impl<'de> Deserialize<'de> for FileSecretProvider
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
Source§impl SecretProvider for FileSecretProvider
impl SecretProvider for FileSecretProvider
Source§fn load_secrets(
&self,
store: &SecretStore,
) -> Result<usize, SecretProviderError>
fn load_secrets( &self, store: &SecretStore, ) -> Result<usize, SecretProviderError>
Load all available secrets into the given store.
Auto Trait Implementations§
impl Freeze for FileSecretProvider
impl RefUnwindSafe for FileSecretProvider
impl Send for FileSecretProvider
impl Sync for FileSecretProvider
impl Unpin for FileSecretProvider
impl UnsafeUnpin for FileSecretProvider
impl UnwindSafe for FileSecretProvider
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