pub struct SavedSeries {
pub id: usize,
pub options: SeriesOptions,
pub visible: bool,
pub fed: bool,
pub price_scale: Option<PriceScale>,
pub pane: usize,
pub annotations: SavedAnnotations,
}Expand description
One bar series added with Chart::add_series to a ChartSnapshot, without its bars.
Chart::restore adds it again with a new id: supply its bars through
Chart::set_data on Chart::restored_series_id of id, or set
fed to reconnect its symbol or spread to the chart feed.
Fields§
§id: usizeThe series’ id when saved, which SavedPane::members and drawings in its pane use.
options: SeriesOptionsIts name, chart type, colours and scale assignment. A style’s autoscale function is not saved.
visible: boolWhether it is shown.
fed: boolReconnect the symbol or spread in options.name to the chart feed on restore.
Older layouts leave series host-fed.
price_scale: Option<PriceScale>Its price scale, including options and a manual range; absent in older layouts.
pane: usizeThe position of its pane in ChartSnapshot::panes.
annotations: SavedAnnotationsIts markers and price lines.
Trait Implementations§
Source§impl Clone for SavedSeries
impl Clone for SavedSeries
Source§fn clone(&self) -> SavedSeries
fn clone(&self) -> SavedSeries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SavedSeries
impl Debug for SavedSeries
Source§impl<'de> Deserialize<'de> for SavedSeries
impl<'de> Deserialize<'de> for SavedSeries
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 !RefUnwindSafe for SavedSeries
impl !UnwindSafe for SavedSeries
impl Freeze for SavedSeries
impl Send for SavedSeries
impl Sync for SavedSeries
impl Unpin for SavedSeries
impl UnsafeUnpin for SavedSeries
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