[][src]Struct vega_lite_4::Parameter

pub struct Parameter {
    pub bind: Option<Binding>,
    pub description: Option<String>,
    pub expr: Option<String>,
    pub name: Option<String>,
    pub value: Option<Value>,
}

Fields

bind: Option<Binding>

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

description: Option<String>

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

expr: Option<String>

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.

name: Option<String>

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".

value: Option<Value>

The initial value of the parameter.

Default value: undefined

Trait Implementations

impl Clone for Parameter[src]

impl Debug for Parameter[src]

impl Default for Parameter[src]

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

impl Serialize for Parameter[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: for<'de> 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.