pub trait SecretLoader {
// Required methods
fn resolve_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn process_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for loading secrets from various backends
Required Methods§
Sourcefn resolve_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve a single secret reference to its actual value
Sourcefn process_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process a configuration string, resolving all 1Password references