Struct vega_lite_4::Parameter
source · 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§
source§impl<'de> Deserialize<'de> for Parameter
impl<'de> Deserialize<'de> for Parameter
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
Auto Trait Implementations§
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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