AttestationVault

Trait AttestationVault 

Source
pub trait AttestationVault: Send + Sync {
    // Required methods
    fn record<'life0, 'async_trait>(
        &'life0 self,
        attestation: Attestation,
    ) -> Pin<Box<dyn Future<Output = Result<Uuid>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch<'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Attestation>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_by_subject<'life0, 'life1, 'async_trait>(
        &'life0 self,
        subject: &'life1 TrustSubject,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Attestation>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn record<'life0, 'async_trait>( &'life0 self, attestation: Attestation, ) -> Pin<Box<dyn Future<Output = Result<Uuid>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Attestation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_by_subject<'life0, 'life1, 'async_trait>( &'life0 self, subject: &'life1 TrustSubject, ) -> Pin<Box<dyn Future<Output = Result<Vec<Attestation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§