pub struct Reading {
pub source: String,
pub timestamp: Option<String>,
pub measurement: Measurement,
}Expand description
One value from one source.
Fields§
§source: StringThe Signal K source label, $source or source.label. This is what
tells the boat’s own GPS apart from the cockpit’s, so it is not
optional as far as this crate is concerned – a reading whose origin
is unknown gets the label "unknown" rather than being dropped.
timestamp: Option<String>The sender’s own timestamp, verbatim and unparsed.
Deliberately not turned into an instant to compute age from. Age is
measured against the receiving clock (see [fix::Sources]),
because two computers on a boat disagree about the time far more
often than anyone expects, and an age computed across that
disagreement can come out negative.
measurement: MeasurementWhat was measured.
Trait Implementations§
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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