pub struct PostgresStateStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl StateStore for PostgresStateStore
impl StateStore for PostgresStateStore
Source§fn save<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
step: &'life2 str,
data: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn save<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
step: &'life2 str,
data: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Save or update state for a specific case + step pair.
Source§fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
step: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<StateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
step: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<StateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Fetch state for a specific case + step. Returns
None if not found.Source§fn get_all<'life0, 'life1, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<StateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_all<'life0, 'life1, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<StateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch all state entries for a case (every step).
Source§fn delete_by_case<'life0, 'life1, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_by_case<'life0, 'life1, 'async_trait>(
&'life0 self,
case_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete all state entries for a case (cleanup when workflow finishes).
Source§fn save_session<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
step: &'life2 str,
data: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn save_session<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
step: &'life2 str,
data: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Save session-scoped state for a specific session + step pair. Read more
Source§fn get_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
step: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionStateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
step: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<SessionStateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Fetch session-scoped state for a specific session + step.
Source§fn get_all_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionStateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_all_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionStateEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch all session-scoped state entries for a session.
Auto Trait Implementations§
impl Freeze for PostgresStateStore
impl !RefUnwindSafe for PostgresStateStore
impl Send for PostgresStateStore
impl Sync for PostgresStateStore
impl Unpin for PostgresStateStore
impl UnsafeUnpin for PostgresStateStore
impl !UnwindSafe for PostgresStateStore
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