#[non_exhaustive]pub enum EvidenceOrigin {
Direct,
Derived(EvidenceDerivation),
}Expand description
Whether an evidence record was directly observed or derived from other records.
Direct is the default and the historical meaning of every evidence record.
Derived carries exact lineage. This distinction is authoritative in the
live knowledge store; it is intentionally not part of the serialized
Evidence wire in this revision (see Evidence).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Direct
A first-hand observation with no derivation lineage.
Derived(EvidenceDerivation)
A record computed from exact parent evidence record(s).
Implementations§
Source§impl EvidenceOrigin
impl EvidenceOrigin
Sourcepub fn derivation(&self) -> Option<&EvidenceDerivation>
pub fn derivation(&self) -> Option<&EvidenceDerivation>
Returns the derivation lineage when this record is derived.
Trait Implementations§
Source§impl Clone for EvidenceOrigin
impl Clone for EvidenceOrigin
Source§fn clone(&self) -> EvidenceOrigin
fn clone(&self) -> EvidenceOrigin
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 EvidenceOrigin
impl Debug for EvidenceOrigin
Source§impl Default for EvidenceOrigin
impl Default for EvidenceOrigin
Source§fn default() -> EvidenceOrigin
fn default() -> EvidenceOrigin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvidenceOrigin
impl<'de> Deserialize<'de> for EvidenceOrigin
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
impl Eq for EvidenceOrigin
Source§impl PartialEq for EvidenceOrigin
impl PartialEq for EvidenceOrigin
Source§impl Serialize for EvidenceOrigin
impl Serialize for EvidenceOrigin
impl StructuralPartialEq for EvidenceOrigin
Auto Trait Implementations§
impl Freeze for EvidenceOrigin
impl RefUnwindSafe for EvidenceOrigin
impl Send for EvidenceOrigin
impl Sync for EvidenceOrigin
impl Unpin for EvidenceOrigin
impl UnsafeUnpin for EvidenceOrigin
impl UnwindSafe for EvidenceOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.