Skip to main content

AttachmentStore

Trait AttachmentStore 

Source
pub trait AttachmentStore: Send + Sync {
    // Required methods
    fn put(
        &self,
        bytes: Vec<u8>,
        meta: AttachmentCreateMeta,
    ) -> Result<AttachmentRef, AttachmentStoreError>;
    fn get(
        &self,
        id: &AttachmentId,
    ) -> Result<StoredAttachment, AttachmentStoreError>;
}

Required Methods§

Implementors§