pub struct Artifact {
pub kind: String,
pub rel_path: String,
pub note: Option<String>,
pub digest: Option<String>,
pub bytes: Option<u64>,
}Expand description
A pointer to a preserved on-disk artifact (a minidump, or a snapshot of a corrupt store) that travels with the report for offline analysis.
Fields§
§kind: StringFree-form kind, e.g. "minidump", "store-snapshot".
rel_path: StringPath relative to the report directory.
note: Option<String>Human note, e.g. how to inspect it ("fsck --deep …").
digest: Option<String>Content digest of the preserved bytes (see crate::writer::digest_of).
Lets a later occurrence prove it is looking at the same bad state
before reusing an existing snapshot, and lets an analyst confirm the
artifact was not altered in transit.
bytes: Option<u64>Total size of the preserved artifact in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
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 Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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