pub struct View {
pub streams: Vec<Stream>,
pub visible_stream_ids: Vec<String>,
pub custom_ranges: BTreeMap<String, CustomRange>,
pub title: String,
pub title_visible: bool,
pub utc_offset_hours: i32,
pub cursors_visible: bool,
pub break_at_gaps: bool,
pub parameters: BTreeMap<String, f64>,
}Expand description
The view state: the streams and every choice about them.
Fields§
§streams: Vec<Stream>Every stream, in View-menu order.
visible_stream_ids: Vec<String>The shown streams, in drawing order.
custom_ranges: BTreeMap<String, CustomRange>Custom y ranges by stream id.
title: StringGraph title.
title_visible: boolWhether the title is shown.
utc_offset_hours: i32Hours added to UTC for epoch times.
cursors_visible: boolWhether the time cursors are shown.
break_at_gaps: boolWhether lines break at gaps.
parameters: BTreeMap<String, f64>Every transform parameter by id; toggles as 1 or 0.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
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 View
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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