Skip to main content

BlobStoreTrait

Trait BlobStoreTrait 

Source
pub trait BlobStoreTrait: Send + Sync {
    // Required methods
    fn put<'life0, 'async_trait>(
        &'life0 self,
        attachment_id: String,
        payload: MultimodalPayload,
    ) -> Pin<Box<dyn Future<Output = Result<AttachmentRef, BlobStoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        descriptor: &'life1 BlobDescriptor,
    ) -> Pin<Box<dyn Future<Output = Result<MultimodalPayload, BlobStoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn put<'life0, 'async_trait>( &'life0 self, attachment_id: String, payload: MultimodalPayload, ) -> Pin<Box<dyn Future<Output = Result<AttachmentRef, BlobStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, descriptor: &'life1 BlobDescriptor, ) -> Pin<Box<dyn Future<Output = Result<MultimodalPayload, BlobStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§