pub struct Delta {
pub context: Context,
pub readings: Vec<Reading>,
pub active_polar: Option<Value>,
}Expand description
One delta message, read.
Fields§
§context: ContextWhose it is.
readings: Vec<Reading>What it carried that this crate understands.
active_polar: Option<Value>A performance.activePolarData update, verbatim, when this
delta’s own values included one.
Kept apart from readings/Measurement entirely rather than
as another variant of that enum: a polar is a nested table’s
worth of JSON, not the small Copy scalar every other
Measurement carries, and folding it in would cost that enum
its Copy – and every existing match site the ergonomics that
comes with – for the one path nothing else needs it for.
crate::polar::parse turns this into a usable
crate::polar::PolarResource; this crate only carries it as
far as the wire shape, the same distance it keeps from every
other value here.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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