pub struct ChartInteraction {
pub enabled: bool,
pub tooltip_trigger: ChartTooltipTrigger,
pub selection_mode: ChartSelectionMode,
pub legend_selection: ChartLegendSelectionMode,
pub brush: Option<ChartBrush>,
pub emphasis: ChartEmphasis,
pub toolbox_actions: Vec<ChartToolAction>,
pub emit_events: bool,
pub keyboard_focus: bool,
}Fields§
§enabled: bool§tooltip_trigger: ChartTooltipTrigger§selection_mode: ChartSelectionMode§legend_selection: ChartLegendSelectionMode§brush: Option<ChartBrush>§emphasis: ChartEmphasis§toolbox_actions: Vec<ChartToolAction>§emit_events: bool§keyboard_focus: boolImplementations§
Source§impl ChartInteraction
impl ChartInteraction
pub fn new() -> Self
pub fn tooltips(trigger: ChartTooltipTrigger) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn tooltip_trigger(self, trigger: ChartTooltipTrigger) -> Self
pub fn selection_mode(self, mode: ChartSelectionMode) -> Self
pub fn brush(self, brush: ChartBrush) -> Self
pub fn legend_selection(self, mode: ChartLegendSelectionMode) -> Self
pub fn emphasis(self, emphasis: ChartEmphasis) -> Self
pub fn toolbox_actions(self, actions: Vec<ChartToolAction>) -> Self
pub fn emit_events(self, emit: bool) -> Self
pub fn keyboard_focus(self, focusable: bool) -> Self
Trait Implementations§
Source§impl Clone for ChartInteraction
impl Clone for ChartInteraction
Source§fn clone(&self) -> ChartInteraction
fn clone(&self) -> ChartInteraction
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 ChartInteraction
impl Debug for ChartInteraction
Source§impl Default for ChartInteraction
impl Default for ChartInteraction
Source§impl<'de> Deserialize<'de> for ChartInteraction
impl<'de> Deserialize<'de> for ChartInteraction
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 ChartInteraction
impl PartialEq for ChartInteraction
Source§fn eq(&self, other: &ChartInteraction) -> bool
fn eq(&self, other: &ChartInteraction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChartInteraction
impl Serialize for ChartInteraction
impl StructuralPartialEq for ChartInteraction
Auto Trait Implementations§
impl Freeze for ChartInteraction
impl RefUnwindSafe for ChartInteraction
impl Send for ChartInteraction
impl Sync for ChartInteraction
impl Unpin for ChartInteraction
impl UnsafeUnpin for ChartInteraction
impl UnwindSafe for ChartInteraction
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.