pub trait SecretProvider:
Send
+ Sync
+ Debug {
// Required method
fn get_secret(
&self,
tenant: &TenantId,
key: &str,
) -> Result<Option<String>, ServerError>;
}Available on crate feature
multi-tenant only.Expand description
Required Methods§
Sourcefn get_secret(
&self,
tenant: &TenantId,
key: &str,
) -> Result<Option<String>, ServerError>
fn get_secret( &self, tenant: &TenantId, key: &str, ) -> Result<Option<String>, ServerError>
Fetches secret for tenant and key.