pub trait SecretFetcher: Send + Sync {
// Required method
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SecretValue>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided method
fn needs_rotation<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
current_version: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Trait for secret provider backends.
Required Methods§
Provided Methods§
Sourcefn needs_rotation<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
current_version: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn needs_rotation<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
current_version: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check if a secret has been rotated since the given version.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".