pub struct EvidenceProvenance {
pub original_path: PathBuf,
pub snapshot_path: Option<PathBuf>,
pub sha256: Option<String>,
pub copied_at: Option<SystemTime>,
}Expand description
Provenance for an opened evidence database.
Surfaced additively alongside the connection so callers can record how the
evidence was accessed without altering the existing BrowserEvent.source
schema. When a WAL working-copy is made, snapshot_path, sha256 (of the
original main DB), and copied_at are populated; for a copy-free open they
are None.
Fields§
§original_path: PathBufThe original evidence path the caller requested.
snapshot_path: Option<PathBuf>Path to the disposable working copy actually opened, when one was made.
sha256: Option<String>SHA-256 (lowercase hex) of the original main DB file, when a copy was made.
copied_at: Option<SystemTime>When the working copy was taken.
Trait Implementations§
Source§impl Clone for EvidenceProvenance
impl Clone for EvidenceProvenance
Source§fn clone(&self) -> EvidenceProvenance
fn clone(&self) -> EvidenceProvenance
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 EvidenceProvenance
impl Debug for EvidenceProvenance
Source§impl<'de> Deserialize<'de> for EvidenceProvenance
impl<'de> Deserialize<'de> for EvidenceProvenance
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 EvidenceProvenance
impl RefUnwindSafe for EvidenceProvenance
impl Send for EvidenceProvenance
impl Sync for EvidenceProvenance
impl Unpin for EvidenceProvenance
impl UnsafeUnpin for EvidenceProvenance
impl UnwindSafe for EvidenceProvenance
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