pub trait WorkflowRunStore: Send + Sync {
// Required methods
fn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>;
fn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>;
fn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>;
fn delete(&self, run_id: &str) -> Result<bool, StoreError>;
}Expand description
Host port for listing and resuming workflow runs.
Required Methods§
Sourcefn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>
fn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>
Sourcefn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>
fn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>
Sourcefn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>
fn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".