SecretManagerConfig

Trait SecretManagerConfig 

Source
pub trait SecretManagerConfig: SecretManage {
    type Config: Serialize + DeserializeOwned + Debug + Send + Sync;

    // Required methods
    fn to_config(&self) -> Option<Self::Config>;
    fn from_config(config: &Self::Config) -> Result<Self, Self::Error>
       where Self: Sized;
}
Available on crate feature client only.

Required Associated Types§

Required Methods§

Source

fn to_config(&self) -> Option<Self::Config>

Source

fn from_config(config: &Self::Config) -> Result<Self, Self::Error>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SecretManagerConfig for SecretManager

Source§

impl SecretManagerConfig for StrongholdAdapter

Available on crate feature stronghold only.
Source§

impl SecretManagerConfig for LedgerSecretManager

Available on crate feature ledger_nano only.