pub struct SavedPane {
pub main: bool,
pub stretch: f32,
pub collapsed: Option<bool>,
pub preserve: bool,
pub members: Vec<usize>,
pub scale: Option<PriceScale>,
}Expand description
One pane of a ChartSnapshot.
Fields§
§main: boolWhether it is the price pane.
stretch: f32Its share of the chart height; see Chart::pane_stretch_factor.
collapsed: Option<bool>Explicit collapse state, or automatic collapse in a narrow chart.
preserve: boolKeep the pane when its last study leaves.
members: Vec<usize>Saved study and series ids in legend order; empty in version 1 layouts.
scale: Option<PriceScale>The pane’s price scale, including its manual range.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SavedPane
impl<'de> Deserialize<'de> for SavedPane
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
Auto Trait Implementations§
impl Freeze for SavedPane
impl RefUnwindSafe for SavedPane
impl Send for SavedPane
impl Sync for SavedPane
impl Unpin for SavedPane
impl UnsafeUnpin for SavedPane
impl UnwindSafe for SavedPane
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more