pub struct LocalReceiptStore { /* private fields */ }Implementations§
Source§impl LocalReceiptStore
impl LocalReceiptStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn root(&self) -> &Path
pub fn public_projection( &self, workspace_base: &Path, project_runx_dir: &Path, ) -> ReceiptStorePublicProjection
pub fn receipt_path( &self, receipt_id: &str, ) -> Result<PathBuf, ReceiptStoreError>
pub fn read_exact(&self, receipt_id: &str) -> Result<Receipt, ReceiptStoreError>
pub fn read_exact_with_policy( &self, receipt_id: &str, signature_policy: RuntimeReceiptSignaturePolicy<'_>, ) -> Result<Receipt, ReceiptStoreError>
pub fn write_receipt(&self, receipt: &Receipt) -> Result<(), ReceiptStoreError>
pub fn write_receipt_with_policy( &self, receipt: &Receipt, signature_policy: RuntimeReceiptSignaturePolicy<'_>, ) -> Result<(), ReceiptStoreError>
pub fn list(&self) -> Result<Vec<Receipt>, ReceiptStoreError>
pub fn list_with_policy( &self, signature_policy: RuntimeReceiptSignaturePolicy<'_>, ) -> Result<Vec<Receipt>, ReceiptStoreError>
pub fn load_index(&self) -> Result<ReceiptStoreIndex, ReceiptStoreError>
pub fn load_index_with_policy( &self, signature_policy: RuntimeReceiptSignaturePolicy<'_>, ) -> Result<ReceiptStoreIndex, ReceiptStoreError>
pub fn rebuild_index(&self) -> Result<ReceiptStoreIndex, ReceiptStoreError>
pub fn rebuild_index_with_policy( &self, signature_policy: RuntimeReceiptSignaturePolicy<'_>, ) -> Result<ReceiptStoreIndex, ReceiptStoreError>
Trait Implementations§
Source§impl Clone for LocalReceiptStore
impl Clone for LocalReceiptStore
Source§fn clone(&self) -> LocalReceiptStore
fn clone(&self) -> LocalReceiptStore
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 moreAuto Trait Implementations§
impl Freeze for LocalReceiptStore
impl RefUnwindSafe for LocalReceiptStore
impl Send for LocalReceiptStore
impl Sync for LocalReceiptStore
impl Unpin for LocalReceiptStore
impl UnsafeUnpin for LocalReceiptStore
impl UnwindSafe for LocalReceiptStore
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