pub struct ChartOptions<A: Annotation> { /* private fields */ }
Implementations§
§impl<A: Annotation> ChartOptions<A>
impl<A: Annotation> ChartOptions<A>
pub fn new() -> Self
pub fn get_animation(&mut self) -> &mut Option<Animation>
pub fn animation(self, value: impl Into<Animation>) -> ChartOptions<A>
pub fn get_elements(&mut self) -> &mut Option<ChartElements>
pub fn elements(self, value: impl Into<ChartElements>) -> ChartOptions<A>
pub fn get_interaction(&mut self) -> &mut Option<ChartInteraction>
pub fn interaction(self, value: impl Into<ChartInteraction>) -> ChartOptions<A>
pub fn get_index_axis(&mut self) -> &mut String
pub fn index_axis(self, value: impl Into<String>) -> ChartOptions<A>
pub fn get_legend(&mut self) -> &mut Option<ChartLegend>
pub fn legend(self, value: impl Into<ChartLegend>) -> ChartOptions<A>
pub fn get_layout(&mut self) -> &mut Option<ChartLayout>
pub fn layout(self, value: impl Into<ChartLayout>) -> ChartOptions<A>
pub fn get_maintain_aspect_ratio(&mut self) -> &mut Option<bool>
pub fn maintain_aspect_ratio(self, value: impl Into<bool>) -> ChartOptions<A>
pub fn get_plugins(&mut self) -> &mut Option<ChartPlugins<A>>
pub fn plugins(self, value: impl Into<ChartPlugins<A>>) -> ChartOptions<A>
pub fn get_responsive(&mut self) -> &mut Option<bool>
pub fn responsive(self, value: impl Into<bool>) -> ChartOptions<A>
pub fn get_scales(&mut self) -> &mut Option<HashMap<String, ChartScale>>
pub fn scales<T: Into<String>, U: IntoIterator<Item = (T, ChartScale)>>( self, value: U, ) -> ChartOptions<A>
pub fn get_span_gaps(&mut self) -> &mut Option<bool>
pub fn span_gaps(self, value: impl Into<bool>) -> ChartOptions<A>
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§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> Freeze for ChartOptions<A>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)