Struct chart_js_rs::types::ChartOptions
source · pub struct ChartOptions<A: Annotation> {
pub plugins: Option<ChartPlugins<A>>,
pub scales: Option<HashMap<String, ChartScale>>,
pub interaction: Option<ChartInteraction>,
pub tooltips: Option<ChartTooltips>,
pub maintainAspectRatio: Option<bool>,
pub legend: Option<ChartLegend>,
pub animation: Option<Animation>,
pub spanGaps: Option<bool>,
pub elements: Option<ChartElements>,
pub responsive: Option<bool>,
}
Fields§
§plugins: Option<ChartPlugins<A>>
§scales: Option<HashMap<String, ChartScale>>
§interaction: Option<ChartInteraction>
§tooltips: Option<ChartTooltips>
§maintainAspectRatio: Option<bool>
§legend: Option<ChartLegend>
§animation: Option<Animation>
§spanGaps: Option<bool>
§elements: Option<ChartElements>
§responsive: Option<bool>
Trait Implementations§
source§impl<A: Clone + Annotation> Clone for ChartOptions<A>
impl<A: Clone + Annotation> Clone for ChartOptions<A>
source§fn clone(&self) -> ChartOptions<A>
fn clone(&self) -> ChartOptions<A>
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<A: Debug + Annotation> Debug for ChartOptions<A>
impl<A: Debug + Annotation> Debug for ChartOptions<A>
source§impl<A: Default + Annotation> Default for ChartOptions<A>
impl<A: Default + Annotation> Default for ChartOptions<A>
source§fn default() -> ChartOptions<A>
fn default() -> ChartOptions<A>
Returns the “default value” for a type. Read more
source§impl<'de, A> Deserialize<'de> for ChartOptions<A>where
A: Deserialize<'de> + Annotation,
impl<'de, A> Deserialize<'de> for ChartOptions<A>where
A: Deserialize<'de> + Annotation,
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<A: PartialEq + Annotation> PartialEq for ChartOptions<A>
impl<A: PartialEq + Annotation> PartialEq for ChartOptions<A>
source§fn eq(&self, other: &ChartOptions<A>) -> bool
fn eq(&self, other: &ChartOptions<A>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<A> Serialize for ChartOptions<A>where
A: Serialize + Annotation,
impl<A> Serialize for ChartOptions<A>where
A: Serialize + Annotation,
impl<A: Eq + Annotation> Eq for ChartOptions<A>
impl<A: Annotation> StructuralPartialEq for ChartOptions<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for ChartOptions<A>where
A: RefUnwindSafe,
impl<A> Send for ChartOptions<A>where
A: Send,
impl<A> Sync for ChartOptions<A>where
A: Sync,
impl<A> Unpin for ChartOptions<A>where
A: Unpin,
impl<A> UnwindSafe for ChartOptions<A>where
A: UnwindSafe,
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