[][src]Struct vega_lite_3::SelectionConfigBuilder

pub struct SelectionConfigBuilder { /* fields omitted */ }

Builder for SelectionConfig.

Methods

impl SelectionConfigBuilder[src]

pub fn interval<VALUE: Into<IntervalSelectionConfig>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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.

pub fn multi<VALUE: Into<MultiSelectionConfig>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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.

pub fn single<VALUE: Into<SingleSelectionConfig>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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.

pub fn build(&self) -> Result<SelectionConfig, String>[src]

Builds a new SelectionConfig.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for SelectionConfigBuilder[src]

impl Default for SelectionConfigBuilder[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> 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.