pub struct PostgresCaseStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CaseStore for PostgresCaseStore
impl CaseStore for PostgresCaseStore
Source§fn upsert<'life0, 'life1, 'async_trait>(
&'life0 self,
case: &'life1 Case,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert<'life0, 'life1, 'async_trait>(
&'life0 self,
case: &'life1 Case,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Insert or update a case record.
Source§fn get_by_key<'life0, 'life1, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Case>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_by_key<'life0, 'life1, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Case>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch a single case by its unique key.
Auto Trait Implementations§
impl Freeze for PostgresCaseStore
impl !RefUnwindSafe for PostgresCaseStore
impl Send for PostgresCaseStore
impl Sync for PostgresCaseStore
impl Unpin for PostgresCaseStore
impl UnsafeUnpin for PostgresCaseStore
impl !UnwindSafe for PostgresCaseStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more