pub struct ReceiptRef {
pub receipt_id: String,
pub kind: ReceiptKind,
pub storage: ReceiptStorage,
pub content_hash: String,
pub trace_id: Option<String>,
pub replay_handle: Option<String>,
}Expand description
A receipt proving the existence and integrity of a trial artifact.
Fields§
§receipt_id: StringUnique receipt identifier.
kind: ReceiptKindWhat kind of artifact this receipt covers.
storage: ReceiptStorageWhere the artifact is stored.
content_hash: StringBlake3 hash of the artifact content.
trace_id: Option<String>Cross-crate trace ID, if available.
replay_handle: Option<String>Handle for replaying the artifact, if available.
Implementations§
Source§impl ReceiptRef
impl ReceiptRef
Sourcepub fn verify_content(&self, content: &[u8]) -> bool
pub fn verify_content(&self, content: &[u8]) -> bool
Verify that the content hash matches the given content.
Trait Implementations§
Source§impl Clone for ReceiptRef
impl Clone for ReceiptRef
Source§fn clone(&self) -> ReceiptRef
fn clone(&self) -> ReceiptRef
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 ReceiptRef
impl Debug for ReceiptRef
Source§impl<'de> Deserialize<'de> for ReceiptRef
impl<'de> Deserialize<'de> for ReceiptRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReceiptRef
impl RefUnwindSafe for ReceiptRef
impl Send for ReceiptRef
impl Sync for ReceiptRef
impl Unpin for ReceiptRef
impl UnsafeUnpin for ReceiptRef
impl UnwindSafe for ReceiptRef
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