pub struct ChartDataPoint {
pub label: String,
pub value: f64,
pub color: Option<String>,
}Expand description
A data point for bar charts and pie charts.
Fields§
§label: String§value: f64§color: Option<String>Trait Implementations§
Source§impl Clone for ChartDataPoint
impl Clone for ChartDataPoint
Source§fn clone(&self) -> ChartDataPoint
fn clone(&self) -> ChartDataPoint
Returns a duplicate 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 ChartDataPoint
impl Debug for ChartDataPoint
Source§impl<'de> Deserialize<'de> for ChartDataPoint
impl<'de> Deserialize<'de> for ChartDataPoint
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
Auto Trait Implementations§
impl Freeze for ChartDataPoint
impl RefUnwindSafe for ChartDataPoint
impl Send for ChartDataPoint
impl Sync for ChartDataPoint
impl Unpin for ChartDataPoint
impl UnsafeUnpin for ChartDataPoint
impl UnwindSafe for ChartDataPoint
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