pub struct Measurement {
pub metadata: MeasurementMetaData,
pub value: ValueHash,
}Expand description
Keeps measurement metadata and value.
Fields§
§metadata: MeasurementMetaDataKeeps measurement metadata.
value: ValueHashRepresent the hash value of the measurement.
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
Source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
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 Measurement
impl Debug for Measurement
Source§impl Default for Measurement
impl Default for Measurement
Source§fn default() -> Measurement
fn default() -> Measurement
Returns the “default value” for a type. Read more
Source§impl PartialEq for Measurement
impl PartialEq for Measurement
Source§fn eq(&self, other: &Measurement) -> bool
fn eq(&self, other: &Measurement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BootMeasurement> for Measurement
impl TryFrom<BootMeasurement> for Measurement
Source§fn try_from(value: BootMeasurement) -> Result<Self, Self::Error>
fn try_from(value: BootMeasurement) -> Result<Self, Self::Error>
Tries to convert the given BootMeasurement to Measurement.
Returns MeasurementError::InvalidData, when values cannot be properly converted.
Source§type Error = MeasurementError
type Error = MeasurementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnsafeUnpin for Measurement
impl UnwindSafe for Measurement
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