Struct chart_js_rs::types::ChartScale
source · pub struct ChartScale {Show 21 fields
pub type: String,
pub alignToPixels: Option<bool>,
pub backgroundColour: String,
pub beginAtZero: Option<bool>,
pub border: Option<ScaleBorder>,
pub bounds: String,
pub display: Option<bool>,
pub reverse: Option<bool>,
pub grace: NumberOrDateString,
pub grid: Option<Grid>,
pub grouped: Option<bool>,
pub max: NumberOrDateString,
pub min: NumberOrDateString,
pub position: String,
pub stacked: Option<bool>,
pub suggestedMax: NumberOrDateString,
pub suggestedMin: NumberOrDateString,
pub ticks: Option<ScaleTicks>,
pub time: Option<ScaleTime>,
pub title: Option<Title>,
pub weight: NumberString,
}Fields§
§type: String§alignToPixels: Option<bool>§backgroundColour: String§beginAtZero: Option<bool>§border: Option<ScaleBorder>§bounds: String§display: Option<bool>§reverse: Option<bool>§grace: NumberOrDateString§grid: Option<Grid>§grouped: Option<bool>§max: NumberOrDateString§min: NumberOrDateString§position: String§stacked: Option<bool>§suggestedMax: NumberOrDateString§suggestedMin: NumberOrDateString§ticks: Option<ScaleTicks>§time: Option<ScaleTime>§title: Option<Title>§weight: NumberStringTrait Implementations§
source§impl Clone for ChartScale
impl Clone for ChartScale
source§fn clone(&self) -> ChartScale
fn clone(&self) -> ChartScale
Returns a copy 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 ChartScale
impl Debug for ChartScale
source§impl Default for ChartScale
impl Default for ChartScale
source§fn default() -> ChartScale
fn default() -> ChartScale
Returns the “default value” for a type. Read more
source§impl Ord for ChartScale
impl Ord for ChartScale
source§fn cmp(&self, other: &ChartScale) -> Ordering
fn cmp(&self, other: &ChartScale) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ChartScale> for ChartScale
impl PartialEq<ChartScale> for ChartScale
source§fn eq(&self, other: &ChartScale) -> bool
fn eq(&self, other: &ChartScale) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ChartScale> for ChartScale
impl PartialOrd<ChartScale> for ChartScale
source§fn partial_cmp(&self, other: &ChartScale) -> Option<Ordering>
fn partial_cmp(&self, other: &ChartScale) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more