pub struct ChartConfig {
pub visualize: VisualizeSpec,
pub title: Option<String>,
pub width: f64,
pub height: f64,
pub colors: Vec<String>,
pub theme: Theme,
}Expand description
Configuration passed to chart renderers.
Fields§
§visualize: VisualizeSpecThe visualize spec from the parsed YAML.
title: Option<String>Chart title (if any).
width: f64Available width in pixels.
height: f64Available height in pixels.
colors: Vec<String>Color palette to use.
theme: ThemeTheme colors for chart chrome (axes, grid, text). Not serialized — set at render time by the consuming application.
Trait Implementations§
Source§impl Clone for ChartConfig
impl Clone for ChartConfig
Source§fn clone(&self) -> ChartConfig
fn clone(&self) -> ChartConfig
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 ChartConfig
impl Debug for ChartConfig
Source§impl<'de> Deserialize<'de> for ChartConfig
impl<'de> Deserialize<'de> for ChartConfig
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 ChartConfig
impl RefUnwindSafe for ChartConfig
impl Send for ChartConfig
impl Sync for ChartConfig
impl Unpin for ChartConfig
impl UnsafeUnpin for ChartConfig
impl UnwindSafe for ChartConfig
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