pub struct FileWorkflowRunStore { /* private fields */ }Expand description
Directory of *.json records + optional shared journal root.
Layout:
{root}/
index.jsonl # optional append-only index (rewritten on put for simplicity: one file per run)
runs/{run_id}.json
journals/{run_id}.jsonl # conventional journal path helperImplementations§
Trait Implementations§
Source§impl Clone for FileWorkflowRunStore
impl Clone for FileWorkflowRunStore
Source§fn clone(&self) -> FileWorkflowRunStore
fn clone(&self) -> FileWorkflowRunStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileWorkflowRunStore
impl Debug for FileWorkflowRunStore
Source§impl WorkflowRunStore for FileWorkflowRunStore
impl WorkflowRunStore for FileWorkflowRunStore
Source§fn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>
fn put(&self, record: WorkflowRunRecord) -> Result<(), StoreError>
Insert or replace a record. Read more
Source§fn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>
fn get(&self, run_id: &str) -> Result<Option<WorkflowRunRecord>, StoreError>
Fetch by run id. Read more
Source§fn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>
fn list(&self) -> Result<Vec<WorkflowRunRecord>, StoreError>
List all runs (newest-updated first when possible). Read more
Auto Trait Implementations§
impl Freeze for FileWorkflowRunStore
impl RefUnwindSafe for FileWorkflowRunStore
impl Send for FileWorkflowRunStore
impl Sync for FileWorkflowRunStore
impl Unpin for FileWorkflowRunStore
impl UnsafeUnpin for FileWorkflowRunStore
impl UnwindSafe for FileWorkflowRunStore
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