Struct chart_js_rs::types::ChartLegend
source · pub struct ChartLegend {
pub display: Option<bool>,
pub labels: Option<LegendLabel>,
pub position: String,
}
Fields§
§display: Option<bool>
§labels: Option<LegendLabel>
§position: String
Trait Implementations§
source§impl Clone for ChartLegend
impl Clone for ChartLegend
source§fn clone(&self) -> ChartLegend
fn clone(&self) -> ChartLegend
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 ChartLegend
impl Debug for ChartLegend
source§impl Default for ChartLegend
impl Default for ChartLegend
source§fn default() -> ChartLegend
fn default() -> ChartLegend
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChartLegend
impl<'de> Deserialize<'de> for ChartLegend
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 ChartLegend
impl Ord for ChartLegend
source§fn cmp(&self, other: &ChartLegend) -> Ordering
fn cmp(&self, other: &ChartLegend) -> 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 ChartLegend
impl PartialEq for ChartLegend
source§fn eq(&self, other: &ChartLegend) -> bool
fn eq(&self, other: &ChartLegend) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChartLegend
impl PartialOrd for ChartLegend
source§fn partial_cmp(&self, other: &ChartLegend) -> Option<Ordering>
fn partial_cmp(&self, other: &ChartLegend) -> 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 ChartLegend
impl Serialize for ChartLegend
impl Eq for ChartLegend
impl StructuralPartialEq for ChartLegend
Auto Trait Implementations§
impl Freeze for ChartLegend
impl RefUnwindSafe for ChartLegend
impl Send for ChartLegend
impl Sync for ChartLegend
impl Unpin for ChartLegend
impl UnwindSafe for ChartLegend
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