pub struct CurrentPriceConfig {
pub show_line: bool,
pub show_label: bool,
pub line_style: LineStyle,
pub line_width: f32,
pub label_padding: f32,
pub line_color: Option<[f32; 4]>,
pub label_bg_color: Option<[f32; 4]>,
pub label_text_color: Option<[f32; 4]>,
}Expand description
Configuration for current price line
Fields§
§show_line: boolShow the horizontal price line
show_label: boolShow the price label box
line_style: LineStyleLine style (solid, dashed, dotted)
line_width: f32Line width
label_padding: f32Label padding
line_color: Option<[f32; 4]>Custom line color (if None, uses theme)
label_bg_color: Option<[f32; 4]>Custom label background color (if None, uses candle color)
label_text_color: Option<[f32; 4]>Custom label text color (if None, uses theme)
Trait Implementations§
Source§impl Clone for CurrentPriceConfig
impl Clone for CurrentPriceConfig
Source§fn clone(&self) -> CurrentPriceConfig
fn clone(&self) -> CurrentPriceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CurrentPriceConfig
impl Debug for CurrentPriceConfig
Source§impl Default for CurrentPriceConfig
impl Default for CurrentPriceConfig
Source§impl<'de> Deserialize<'de> for CurrentPriceConfig
impl<'de> Deserialize<'de> for CurrentPriceConfig
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 CurrentPriceConfig
impl RefUnwindSafe for CurrentPriceConfig
impl Send for CurrentPriceConfig
impl Sync for CurrentPriceConfig
impl Unpin for CurrentPriceConfig
impl UnsafeUnpin for CurrentPriceConfig
impl UnwindSafe for CurrentPriceConfig
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