Skip to main content

EvidenceDetail

Struct EvidenceDetail 

Source
pub struct EvidenceDetail {
Show 19 fields pub property_iri: String, pub basis: ClaimBasis, pub value: Option<EvidenceValue>, pub uncertainty: Option<Uncertainty>, pub method_iri: Option<String>, pub observed_at: Option<String>, pub valid_during: Option<String>, pub valid_from: Option<String>, pub valid_until: Option<String>, pub scope: BiologicalScope, pub source_record_id: Option<String>, pub media_region: Option<String>, pub epistemic_tier: Option<EpistemicTier>, pub observation_method: Option<ObservationMethod>, pub observer_role: Option<ObserverRole>, pub temporal_axis: Option<TemporalObservationAxis>, pub stability_class: Option<TemporalStabilityClass>, pub inference_formula_iri: Option<String>, pub derived_from_observation_ids: Vec<String>,
}
Expand description

Content of a measured or described fact.

Fields§

§property_iri: String§basis: ClaimBasis§value: Option<EvidenceValue>§uncertainty: Option<Uncertainty>§method_iri: Option<String>§observed_at: Option<String>

ISO 8601 instant or interval of observation.

§valid_during: Option<String>

ISO 8601 interval during which the assertion is held valid.

§valid_from: Option<String>

ISO 8601 start of validity interval (q42:validFrom).

§valid_until: Option<String>

ISO 8601 end of validity interval (q42:validUntil).

§scope: BiologicalScope§source_record_id: Option<String>

Identifier of the record within the root source (for example a trait observation id).

§media_region: Option<String>

Region of a media item supporting the assertion (for example an Audiovisual Core ROI).

§epistemic_tier: Option<EpistemicTier>

Seven-tier epistemic provenance state (q42:epistemicTier).

§observation_method: Option<ObservationMethod>

Normative q42m:* observation method (q42:observationMethod).

§observer_role: Option<ObserverRole>

Role of the observer (q42:observerRole).

§temporal_axis: Option<TemporalObservationAxis>

Four-axis temporal provenance and half-life decay parameters.

§stability_class: Option<TemporalStabilityClass>

Biological freshness stability class.

§inference_formula_iri: Option<String>

Canonical IRI/hash of the transfer formula for InferredFromObservation.

§derived_from_observation_ids: Vec<String>

Upstream observation assertion IDs for InferredFromObservation.

Implementations§

Source§

impl EvidenceDetail

Source

pub fn validate(&self) -> Result<(), String>

Validates internal consistency. Numeric values must be finite, ranges ordered, and a Measured assertion must name its method.

Source

pub fn compile_to_quins( &self, s: u64, ctx: u64, meta: u64, out: &mut [NQuin], start: usize, ) -> usize

Appends evidence quins for subject hash s into out[start..]; returns the new length.

Trait Implementations§

Source§

impl Clone for EvidenceDetail

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EvidenceDetail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EvidenceDetail

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EvidenceDetail

Source§

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 EvidenceDetail

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for EvidenceDetail

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EvidenceDetail

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.