pub struct RecordArtifact {
pub kind: String,
pub locator: String,
pub sha256: String,
pub size_bytes: Option<u64>,
pub media_type: Option<String>,
pub disclosure: ArtifactDisclosure,
pub locator_integrity: LocatorIntegrity,
pub availability: ArtifactAvailability,
pub note: String,
}Expand description
One evidence artifact the claim rests on. locator is where the bytes
live (a path relative to the receipt, a URL, a content-addressed blob);
sha256 is what makes the reference binding.
Fields§
§kind: StringWhat kind of artifact: witness, log, dataset, notebook,
proof, analysis — free-form, one word.
locator: String§sha256: Stringsha256 (hex) of public artifact bytes. Empty for a restricted opaque custodian reference; restricted low-entropy bytes never get a public equality digest merely to satisfy this compatibility index.
size_bytes: Option<u64>§media_type: Option<String>§disclosure: ArtifactDisclosure§locator_integrity: LocatorIntegrity§availability: ArtifactAvailability§note: StringTrait Implementations§
Source§impl Clone for RecordArtifact
impl Clone for RecordArtifact
Source§fn clone(&self) -> RecordArtifact
fn clone(&self) -> RecordArtifact
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 RecordArtifact
impl Debug for RecordArtifact
Source§impl<'de> Deserialize<'de> for RecordArtifact
impl<'de> Deserialize<'de> for RecordArtifact
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
Source§impl PartialEq for RecordArtifact
impl PartialEq for RecordArtifact
Source§impl Serialize for RecordArtifact
impl Serialize for RecordArtifact
impl StructuralPartialEq for RecordArtifact
Auto Trait Implementations§
impl Freeze for RecordArtifact
impl RefUnwindSafe for RecordArtifact
impl Send for RecordArtifact
impl Sync for RecordArtifact
impl Unpin for RecordArtifact
impl UnsafeUnpin for RecordArtifact
impl UnwindSafe for RecordArtifact
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