pub struct ChartSeries {
pub name: String,
pub value: String,
pub color: Option<String>,
}Expand description
A chart’s series.
Fields§
§name: StringIts name in the legend.
value: StringThe number for each row, such as [Quantity] * [Price].
color: Option<String>Its color; one from the palette when absent.
Implementations§
Trait Implementations§
Source§impl Clone for ChartSeries
impl Clone for ChartSeries
Source§fn clone(&self) -> ChartSeries
fn clone(&self) -> ChartSeries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChartSeries
impl Debug for ChartSeries
Source§impl Default for ChartSeries
impl Default for ChartSeries
Source§fn default() -> ChartSeries
fn default() -> ChartSeries
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChartSerieswhere
ChartSeries: Default,
impl<'de> Deserialize<'de> for ChartSerieswhere
ChartSeries: Default,
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 PartialEq for ChartSeries
impl PartialEq for ChartSeries
Source§impl Serialize for ChartSeries
impl Serialize for ChartSeries
impl StructuralPartialEq for ChartSeries
Auto Trait Implementations§
impl Freeze for ChartSeries
impl RefUnwindSafe for ChartSeries
impl Send for ChartSeries
impl Sync for ChartSeries
impl Unpin for ChartSeries
impl UnsafeUnpin for ChartSeries
impl UnwindSafe for ChartSeries
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