pub struct MarkLabels {
pub show: bool,
pub column: Option<String>,
pub format: Option<String>,
pub currency: Option<String>,
pub unit: Option<String>,
pub percent: bool,
}Expand description
Mark label display and formatting declaration.
Fields§
§show: boolWhether labels are shown.
column: Option<String>Optional label source column. Defaults to the chart y column when absent.
format: Option<String>Optional value format.
currency: Option<String>Currency code for currency-formatted numeric values.
unit: Option<String>Unit label.
percent: boolWhether the value is a percentage.
Trait Implementations§
Source§impl Clone for MarkLabels
impl Clone for MarkLabels
Source§fn clone(&self) -> MarkLabels
fn clone(&self) -> MarkLabels
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 MarkLabels
impl Debug for MarkLabels
Source§impl<'de> Deserialize<'de> for MarkLabels
impl<'de> Deserialize<'de> for MarkLabels
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 MarkLabels
impl PartialEq for MarkLabels
Source§fn eq(&self, other: &MarkLabels) -> bool
fn eq(&self, other: &MarkLabels) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MarkLabels
impl Serialize for MarkLabels
impl Eq for MarkLabels
impl StructuralPartialEq for MarkLabels
Auto Trait Implementations§
impl Freeze for MarkLabels
impl RefUnwindSafe for MarkLabels
impl Send for MarkLabels
impl Sync for MarkLabels
impl Unpin for MarkLabels
impl UnsafeUnpin for MarkLabels
impl UnwindSafe for MarkLabels
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.