Trait OfferMetadataStore
Source pub trait OfferMetadataStore {
type Error: Error + Send + Sync + 'static + HasServiceErrorSource;
// Required methods
fn get_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
partition: &'life1 str,
id: &'life2 Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<OfferMetadata>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_all_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
partition: &'life1 str,
start: usize,
count: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<OfferMetadata>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn post_metadata<'life0, 'async_trait>(
&'life0 self,
offer: OfferMetadata,
) -> Pin<Box<dyn Future<Output = Result<Option<Uuid>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put_metadata<'life0, 'async_trait>(
&'life0 self,
offer: OfferMetadata,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
partition: &'life1 str,
id: &'life2 Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}