SecretsResolver

Trait SecretsResolver 

Source
pub trait SecretsResolver: Send + Sync {
    // Required methods
    fn get_json<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        path: &'life1 SecretPath,
        ctx: &'life2 TenantCtx,
    ) -> Pin<Box<dyn Future<Output = NodeResult<Option<T>>> + Send + 'async_trait>>
       where T: DeserializeOwned + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn put_json<'life0, 'life1, 'life2, 'life3, 'async_trait, T>(
        &'life0 self,
        path: &'life1 SecretPath,
        ctx: &'life2 TenantCtx,
        value: &'life3 T,
    ) -> Pin<Box<dyn Future<Output = NodeResult<()>> + Send + 'async_trait>>
       where T: Serialize + Sync + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn get_json<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, path: &'life1 SecretPath, ctx: &'life2 TenantCtx, ) -> Pin<Box<dyn Future<Output = NodeResult<Option<T>>> + Send + 'async_trait>>
where T: DeserializeOwned + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn put_json<'life0, 'life1, 'life2, 'life3, 'async_trait, T>( &'life0 self, path: &'life1 SecretPath, ctx: &'life2 TenantCtx, value: &'life3 T, ) -> Pin<Box<dyn Future<Output = NodeResult<()>> + Send + 'async_trait>>
where T: Serialize + Sync + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

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§