pub struct MeasuredValueEvidence {
pub value: f64,
pub unit: String,
pub method: Option<String>,
pub conditions: MeasurementConditions,
pub sample_id: Option<String>,
pub batch_id: Option<String>,
pub evidence_id: String,
}Expand description
A measured value for one of the four properties whose MHLW schema field
has a real numeric+unit shape (flash point, boiling point, vapor
pressure). evidence_id must match an EvidenceSource::id in
super::ProductInput::evidence — a value with no resolvable evidence
reference can never become Confirmed, only Supplied at best (see
resolution logic in super::result).
conditions deliberately has no #[serde(default)]: it must remain a
required key so an omitted measurement condition is a parse error, not a
silently-accepted empty condition set. (MeasurementConditions’ own
three fields are individually Option, so conditions: {} is valid —
the acceptance policies in super::resolve are what reject an
insufficiently-specified condition set, not the parser.)
Fields§
§value: f64§unit: String§method: Option<String>§conditions: MeasurementConditions§sample_id: Option<String>§batch_id: Option<String>§evidence_id: StringTrait Implementations§
Source§impl Clone for MeasuredValueEvidence
impl Clone for MeasuredValueEvidence
Source§fn clone(&self) -> MeasuredValueEvidence
fn clone(&self) -> MeasuredValueEvidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeasuredValueEvidence
impl Debug for MeasuredValueEvidence
Source§impl<'de> Deserialize<'de> for MeasuredValueEvidence
impl<'de> Deserialize<'de> for MeasuredValueEvidence
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>,
Auto Trait Implementations§
impl Freeze for MeasuredValueEvidence
impl RefUnwindSafe for MeasuredValueEvidence
impl Send for MeasuredValueEvidence
impl Sync for MeasuredValueEvidence
impl Unpin for MeasuredValueEvidence
impl UnsafeUnpin for MeasuredValueEvidence
impl UnwindSafe for MeasuredValueEvidence
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
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>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more