pub struct StudySettings {
pub plots: Vec<PlotStyle>,
pub precision: Option<usize>,
pub hidden_intervals: Vec<Timeframe>,
pub interval_range: StudyIntervalRange,
pub levels: Vec<LevelStyle>,
pub fill_between_levels: bool,
pub level_fill_color: Color32,
pub untagged_plots: Vec<usize>,
}Expand description
Host-serializable presentation settings of an applied study.
Fields§
§plots: Vec<PlotStyle>One style per declared output line.
precision: Option<usize>Decimal places, or the chart’s default precision.
Exact intervals on which the study is hidden, including custom intervals.
interval_range: StudyIntervalRangeA range applied in addition to the exact hidden intervals. Older saved settings show
every interval except those in hidden_intervals.
levels: Vec<LevelStyle>One style per level of the study’s pane, in the order of
StudyPane::levels. Settings saved before levels were
editable, and settings with another number of levels, take the study’s own levels and fill.
fill_between_levels: boolWhether the band between the lowest and the highest level is filled.
level_fill_color: Color32Colour of the band between the lowest and the highest level.
untagged_plots: Vec<usize>Plots, as indices into plots, whose last value has no tag on the price
scale while the chart shows study values; the legend still shows it. A study starts
with the plots its Indicator::plot_tagged leaves out, every plot of a study with more
than four. An empty list, as in settings saved before this field, tags every plot.
Applying settings drops indices without a plot and sorts the rest.
Trait Implementations§
Source§impl Clone for StudySettings
impl Clone for StudySettings
Source§fn clone(&self) -> StudySettings
fn clone(&self) -> StudySettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StudySettings
impl Debug for StudySettings
Source§impl<'de> Deserialize<'de> for StudySettings
impl<'de> Deserialize<'de> for StudySettings
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>,
Source§impl PartialEq for StudySettings
impl PartialEq for StudySettings
Source§impl Serialize for StudySettings
impl Serialize for StudySettings
impl StructuralPartialEq for StudySettings
Auto Trait Implementations§
impl Freeze for StudySettings
impl RefUnwindSafe for StudySettings
impl Send for StudySettings
impl Sync for StudySettings
impl Unpin for StudySettings
impl UnsafeUnpin for StudySettings
impl UnwindSafe for StudySettings
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
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> ⓘ
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> ⓘ
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