Struct chart_js_rs::types::ChartScale
source · pub struct ChartScale {Show 24 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 barPercentage: NumberString,
pub categoryPercentage: NumberString,
pub grace: NumberOrDateString,
pub grid: Option<Grid>,
pub grouped: Option<bool>,
pub offset: 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>
§barPercentage: NumberString
§categoryPercentage: NumberString
§grace: NumberOrDateString
§grid: Option<Grid>
§grouped: Option<bool>
§offset: 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: NumberString
Trait 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 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