wami 0.10.0

Who Am I - Multicloud Identity, IAM, STS, and SSO operations library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Credential Report Store Trait

use crate::error::Result;
use crate::wami::reports::credential_report::CredentialReport;
use async_trait::async_trait;

/// Trait for credential report storage operations
#[async_trait]
pub trait CredentialReportStore: Send + Sync {
    async fn store_credential_report(&mut self, report: CredentialReport) -> Result<()>;

    async fn get_credential_report(&self) -> Result<Option<CredentialReport>>;
}