Trait OfferStore
Source pub trait OfferStore {
type Error: Error + Send + Sync + 'static + HasServiceErrorSource;
// Required methods
fn get_offer<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
partition: &'life1 str,
id: &'life2 Uuid,
sparse: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Option<OfferRecord>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_offers<'life0, 'life1, 'async_trait>(
&'life0 self,
partition: &'life1 str,
start: usize,
count: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<OfferRecord>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn post_offer<'life0, 'async_trait>(
&'life0 self,
offer: OfferRecord,
) -> Pin<Box<dyn Future<Output = Result<Option<Uuid>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put_offer<'life0, 'async_trait>(
&'life0 self,
offer: OfferRecord,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_offer<'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;
}