Struct chart_js_rs::types::ChartScale
source · pub struct ChartScale {Show 26 fields
pub afterBuildTicks: FnWithArgs,
pub alignToPixels: Option<bool>,
pub backgroundColour: String,
pub barPercentage: NumberString,
pub beforeFit: FnWithArgs,
pub beginAtZero: Option<bool>,
pub border: Option<ScaleBorder>,
pub bounds: String,
pub categoryPercentage: NumberString,
pub display: Option<bool>,
pub grace: NumberOrDateString,
pub grid: Option<Grid>,
pub grouped: Option<bool>,
pub max: NumberOrDateString,
pub min: NumberOrDateString,
pub offset: Option<bool>,
pub position: String,
pub reverse: Option<bool>,
pub stacked: Option<bool>,
pub suggestedMax: NumberOrDateString,
pub suggestedMin: NumberOrDateString,
pub ticks: Option<ScaleTicks>,
pub time: Option<ScaleTime>,
pub title: Option<Title>,
pub type: String,
pub weight: NumberString,
}Fields§
§afterBuildTicks: FnWithArgs§alignToPixels: Option<bool>§backgroundColour: String§barPercentage: NumberString§beforeFit: FnWithArgs§beginAtZero: Option<bool>§border: Option<ScaleBorder>§bounds: String§categoryPercentage: NumberString§display: Option<bool>§grace: NumberOrDateString§grid: Option<Grid>§grouped: Option<bool>§max: NumberOrDateString§min: NumberOrDateString§offset: Option<bool>§position: String§reverse: Option<bool>§stacked: Option<bool>§suggestedMax: NumberOrDateString§suggestedMin: NumberOrDateString§ticks: Option<ScaleTicks>§time: Option<ScaleTime>§title: Option<Title>§type: String§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<'de> Deserialize<'de> for ChartScale
impl<'de> Deserialize<'de> for ChartScale
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
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 for ChartScale
impl PartialEq 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 for ChartScale
impl PartialOrd 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 moresource§impl Serialize for ChartScale
impl Serialize for ChartScale
impl Eq for ChartScale
impl StructuralPartialEq for ChartScale
Auto Trait Implementations§
impl Freeze for ChartScale
impl RefUnwindSafe for ChartScale
impl Send for ChartScale
impl Sync for ChartScale
impl Unpin for ChartScale
impl UnwindSafe for ChartScale
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