pub struct ScalesAndLinesSettings {Show 26 fields
pub show_currency: bool,
pub show_unit: bool,
pub show_scale_mode_buttons: bool,
pub show_plus_button: bool,
pub allow_label_overlap: bool,
pub lock_price_to_bar_ratio: bool,
pub price_to_bar_ratio: f64,
pub symbol_price_color: Option<Color32>,
pub show_study_values: bool,
pub study_value_color: Option<Color32>,
pub show_symbol_name: bool,
pub show_study_names: bool,
pub show_extended_session_price: bool,
pub extended_session_price_color: Color32,
pub auto_scale: bool,
pub log_scale: bool,
pub percentage_scale: bool,
pub invert_scale: bool,
pub price_scale_left: bool,
pub show_last_price_label: bool,
pub show_prev_close_label: bool,
pub show_price_line: bool,
pub show_countdown: bool,
pub show_bid_ask: bool,
pub show_high_low: bool,
pub show_prev_close: bool,
}Expand description
Scales and lines tab settings
Fields§
§show_currency: boolDisplay host-supplied currency metadata.
show_unit: boolDisplay host-supplied price unit metadata.
Display Auto, Log and Percent navigation buttons.
Display the price-axis host action button.
allow_label_overlap: boolLet value tags overlap instead of moving them apart.
lock_price_to_bar_ratio: boolLock scale units per bar to price_to_bar_ratio.
price_to_bar_ratio: f64Positive scale units per bar while locked; log scales use natural logarithms of prices.
symbol_price_color: Option<Color32>Last price tag and line colour, or the candle direction colour when unset.
show_study_values: boolDisplay the last values of studies on their price axes.
study_value_color: Option<Color32>Study value tag colour, or each plot’s colour when unset.
show_symbol_name: boolWrite the symbol before its value tags on the price scale, independently of its last value and legend title.
show_study_names: boolWrite each study’s name before its value tags, independently of the values and legend titles.
show_extended_session_price: boolDisplay the host-supplied extended-session price tag.
extended_session_price_color: Color32Extended-session price tag colour.
auto_scale: boolWhether visible prices determine the scale range.
log_scale: boolWhether prices use a logarithmic scale.
percentage_scale: boolWhether prices are shown as percentage changes.
invert_scale: boolWhether increasing prices run downward.
price_scale_left: boolShow the price scale on the left instead of the right.
show_last_price_label: boolDisplay the current close tag independently of its line.
show_prev_close_label: boolDisplay the previous session close tag independently of its line.
show_price_line: boolWhether to show price line.
show_countdown: boolWhether to show countdown.
show_bid_ask: boolWhether to show bid ask.
show_high_low: boolWhether to show high low.
show_prev_close: boolWhether to show prev close.
Trait Implementations§
Source§impl Clone for ScalesAndLinesSettings
impl Clone for ScalesAndLinesSettings
Source§fn clone(&self) -> ScalesAndLinesSettings
fn clone(&self) -> ScalesAndLinesSettings
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 ScalesAndLinesSettings
impl Debug for ScalesAndLinesSettings
Source§impl Default for ScalesAndLinesSettings
impl Default for ScalesAndLinesSettings
Source§impl<'de> Deserialize<'de> for ScalesAndLinesSettingswhere
ScalesAndLinesSettings: Default,
impl<'de> Deserialize<'de> for ScalesAndLinesSettingswhere
ScalesAndLinesSettings: Default,
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 ScalesAndLinesSettings
impl PartialEq for ScalesAndLinesSettings
Source§impl Serialize for ScalesAndLinesSettings
impl Serialize for ScalesAndLinesSettings
impl StructuralPartialEq for ScalesAndLinesSettings
Auto Trait Implementations§
impl Freeze for ScalesAndLinesSettings
impl RefUnwindSafe for ScalesAndLinesSettings
impl Send for ScalesAndLinesSettings
impl Sync for ScalesAndLinesSettings
impl Unpin for ScalesAndLinesSettings
impl UnsafeUnpin for ScalesAndLinesSettings
impl UnwindSafe for ScalesAndLinesSettings
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