pub struct ProvenanceSnapshot {
pub sources: Vec<String>,
pub confidence: Option<f32>,
}Expand description
Snapshot form of Provenance: sources rendered through
Source::label (already the human-readable form used by --doctor and
the detail pane’s footer, so this introduces no second vocabulary) and
confidence rounded per [round_confidence]. Both fields are omitted
when empty/None.
Fields§
§sources: Vec<String>Contributing source labels, in contribution order (earliest first) —
order preserved, not sorted, same reasoning as subcommands.
confidence: Option<f32>Heuristic confidence, rounded to 2 decimals. Absent for structured/authoritative sources, which never set it.
Trait Implementations§
Source§impl Clone for ProvenanceSnapshot
impl Clone for ProvenanceSnapshot
Source§fn clone(&self) -> ProvenanceSnapshot
fn clone(&self) -> ProvenanceSnapshot
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 ProvenanceSnapshot
impl Debug for ProvenanceSnapshot
Source§impl From<&Provenance> for ProvenanceSnapshot
impl From<&Provenance> for ProvenanceSnapshot
Source§fn from(p: &Provenance) -> Self
fn from(p: &Provenance) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProvenanceSnapshot
impl PartialEq for ProvenanceSnapshot
Source§impl Serialize for ProvenanceSnapshot
impl Serialize for ProvenanceSnapshot
impl StructuralPartialEq for ProvenanceSnapshot
Auto Trait Implementations§
impl Freeze for ProvenanceSnapshot
impl RefUnwindSafe for ProvenanceSnapshot
impl Send for ProvenanceSnapshot
impl Sync for ProvenanceSnapshot
impl Unpin for ProvenanceSnapshot
impl UnsafeUnpin for ProvenanceSnapshot
impl UnwindSafe for ProvenanceSnapshot
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