Struct chart_js_rs::types::DataLabels
source · pub struct DataLabels {Show 13 fields
pub align: String,
pub anchor: String,
pub backgroundColor: String,
pub borderRadius: NumberString,
pub clip: Option<bool>,
pub color: String,
pub display: FnWithArgsOrAny,
pub drawTime: NumberString,
pub font: Option<Font>,
pub formatter: FnWithArgs,
pub offset: FnWithArgsOrAny,
pub padding: Option<Padding>,
pub z: NumberString,
}
Fields§
§align: String
§anchor: String
§backgroundColor: String
§borderRadius: NumberString
§clip: Option<bool>
§color: String
§display: FnWithArgsOrAny
§drawTime: NumberString
§font: Option<Font>
§formatter: FnWithArgs
§offset: FnWithArgsOrAny
§padding: Option<Padding>
§z: NumberString
Trait Implementations§
source§impl Clone for DataLabels
impl Clone for DataLabels
source§fn clone(&self) -> DataLabels
fn clone(&self) -> DataLabels
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 DataLabels
impl Debug for DataLabels
source§impl Default for DataLabels
impl Default for DataLabels
source§fn default() -> DataLabels
fn default() -> DataLabels
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DataLabels
impl<'de> Deserialize<'de> for DataLabels
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 DataLabels
impl Ord for DataLabels
source§fn cmp(&self, other: &DataLabels) -> Ordering
fn cmp(&self, other: &DataLabels) -> 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 DataLabels
impl PartialEq for DataLabels
source§fn eq(&self, other: &DataLabels) -> bool
fn eq(&self, other: &DataLabels) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DataLabels
impl PartialOrd for DataLabels
source§fn partial_cmp(&self, other: &DataLabels) -> Option<Ordering>
fn partial_cmp(&self, other: &DataLabels) -> 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 DataLabels
impl Serialize for DataLabels
impl Eq for DataLabels
impl StructuralPartialEq for DataLabels
Auto Trait Implementations§
impl Freeze for DataLabels
impl RefUnwindSafe for DataLabels
impl Send for DataLabels
impl Sync for DataLabels
impl Unpin for DataLabels
impl UnwindSafe for DataLabels
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