[][src]Struct vega_lite_4::ParameterBuilder

pub struct ParameterBuilder { /* fields omitted */ }

Builder for Parameter.

Implementations

impl ParameterBuilder[src]

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

Binds the parameter to an external input element such as a slider, selection list or radio button group.

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

A text description of the parameter, useful for inline documentation.

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

An expression for the value of the parameter. This expression may include other parameters, in which case the parameter will automatically update in response to upstream parameter changes.

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

Required. A unique name for the parameter. Parameter names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or “$”, or “_”) and may not start with a digit. Reserved keywords that may not be used as parameter names are "datum", "event", "item", and "parent".

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

The initial value of the parameter.

Default value: undefined

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

Builds a new Parameter.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ParameterBuilder[src]

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