[][src]Struct vega_lite_3::SelectionConfig

pub struct SelectionConfig {
    pub interval: Option<IntervalSelectionConfig>,
    pub multi: Option<MultiSelectionConfig>,
    pub single: Option<SingleSelectionConfig>,
}

An object hash for defining default properties for each type of selections.

Fields

interval: Option<IntervalSelectionConfig>

The default definition for an interval selection. All properties and transformations for an interval selection definition (except type) may be specified here.

For instance, setting interval to {"translate": false} disables the ability to move interval selections by default.

multi: Option<MultiSelectionConfig>

The default definition for a multi selection. All properties and transformations for a multi selection definition (except type) may be specified here.

For instance, setting multi to {"toggle": "event.altKey"} adds additional values to multi selections when clicking with the alt-key pressed by default.

single: Option<SingleSelectionConfig>

The default definition for a single selection. All properties and transformations for a single selection definition (except type) may be specified here.

For instance, setting single to {"on": "dblclick"} populates single selections on double-click by default.

Trait Implementations

impl Clone for SelectionConfig[src]

impl Debug for SelectionConfig[src]

impl Default for SelectionConfig[src]

impl<'de> Deserialize<'de> for SelectionConfig[src]

impl Serialize for SelectionConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.