pub trait SecretsResolver {
// Required methods
async fn insert(&self, secret: Secret);
async fn insert_vec(&self, secrets: &[Secret]);
async fn get_secret(&self, secret_id: &str) -> Option<Secret>;
async fn find_secrets(&self, secret_ids: &[String]) -> Vec<String>;
async fn remove_secret(&self, secret_id: &str) -> Option<Secret>;
async fn len(&self) -> usize;
async fn is_empty(&self) -> bool;
}Expand description
Affinidi Secrets Resolver
Required Methods§
Sourceasync fn insert_vec(&self, secrets: &[Secret])
async fn insert_vec(&self, secrets: &[Secret])
Insert multiple Secrets
Sourceasync fn get_secret(&self, secret_id: &str) -> Option<Secret>
async fn get_secret(&self, secret_id: &str) -> Option<Secret>
Get a Secret by its ID
Sourceasync fn find_secrets(&self, secret_ids: &[String]) -> Vec<String>
async fn find_secrets(&self, secret_ids: &[String]) -> Vec<String>
Sourceasync fn remove_secret(&self, secret_id: &str) -> Option<Secret>
async fn remove_secret(&self, secret_id: &str) -> Option<Secret>
Removes the secret with the given ID
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.