pub struct ReceiptStore { /* private fields */ }Expand description
Store for managing task receipts
Implementations§
Source§impl ReceiptStore
impl ReceiptStore
Sourcepub fn default_path(workspace: impl AsRef<Path>) -> PathBuf
pub fn default_path(workspace: impl AsRef<Path>) -> PathBuf
Get the default receipt store path for a workspace
Sourcepub fn ensure_dir(&self) -> Result<()>
pub fn ensure_dir(&self) -> Result<()>
Ensure the receipts directory exists
Sourcepub fn write(&self, receipt: &TaskReceipt) -> Result<PathBuf>
pub fn write(&self, receipt: &TaskReceipt) -> Result<PathBuf>
Write a receipt to disk
Sourcepub fn list_for_task(&self, task_id: &str) -> Result<Vec<TaskReceipt>>
pub fn list_for_task(&self, task_id: &str) -> Result<Vec<TaskReceipt>>
List all receipts for a task
Sourcepub fn verify_artifacts(&self, receipt: &TaskReceipt) -> Vec<String>
pub fn verify_artifacts(&self, receipt: &TaskReceipt) -> Vec<String>
Verify all artifacts in a receipt exist on disk
Auto Trait Implementations§
impl Freeze for ReceiptStore
impl RefUnwindSafe for ReceiptStore
impl Send for ReceiptStore
impl Sync for ReceiptStore
impl Unpin for ReceiptStore
impl UnsafeUnpin for ReceiptStore
impl UnwindSafe for ReceiptStore
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