pub struct Spec {
pub time_domain: TimeDomain,
pub utc_offset_hours: i32,
pub x_data_range: Option<[f64; 2]>,
pub traces: Vec<Trace>,
pub axes: Vec<Axis>,
pub event_marker_times: Vec<f64>,
pub metadata_rows: Vec<String>,
pub title: String,
pub break_at_gaps: bool,
}Expand description
What the plot shows: everything a renderer needs besides the samples.
Fields§
§time_domain: TimeDomainThe time axis.
utc_offset_hours: i32Hours added to UTC for epoch tick labels.
x_data_range: Option<[f64; 2]>Earliest and latest sample over all traces; none when nothing is drawn.
traces: Vec<Trace>Traces in drawing order.
axes: Vec<Axis>Axes, the first outermost.
event_marker_times: Vec<f64>Vertical marker lines.
metadata_rows: Vec<String>Lines of the metadata box; empty hides it.
title: StringTitle; empty hides it.
break_at_gaps: boolLines break at gaps.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spec
impl<'de> Deserialize<'de> for Spec
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Spec
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