pub struct ChartConfig {
pub title: Option<String>,
pub x_axis: Axis,
pub y_axis: Axis,
pub datasets: Vec<Dataset>,
pub legend: LegendPosition,
pub grid: bool,
pub width: u32,
pub height: u32,
}Expand description
Chart configuration.
Fields§
§title: Option<String>Optional chart title.
x_axis: AxisX axis configuration.
y_axis: AxisY axis configuration.
datasets: Vec<Dataset>Chart datasets.
legend: LegendPositionLegend position.
grid: boolWhether to render grid lines.
width: u32Total chart width in terminal cells.
height: u32Total chart height in terminal cells.
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 moreAuto 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