Trait encrypt_config::source::SecretSource
source · pub trait SecretSource: Source + Serialize + DeserializeOwned {
const PATH: &'static str;
const KEYRING_ENTRY: &'static str;
// Provided methods
fn path() -> PathBuf { ... }
fn load() -> ConfigResult<Self> { ... }
fn save(&self) -> ConfigResult<()> { ... }
}Available on crate feature
secret only.Expand description
Secret source trait.
Required Associated Constants§
sourceconst PATH: &'static str
Available on non-crate feature default_config_dir only.
const PATH: &'static str
default_config_dir only.Path for the persist source.
sourceconst KEYRING_ENTRY: &'static str
const KEYRING_ENTRY: &'static str
Keyring entry for the secret source.
Provided Methods§
sourcefn load() -> ConfigResult<Self>
fn load() -> ConfigResult<Self>
Load the secret source.
sourcefn save(&self) -> ConfigResult<()>
fn save(&self) -> ConfigResult<()>
Save the secret source.
Object Safety§
This trait is not object safe.