[−][src]Struct vega_lite_4::ParameterBuilder
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]
Trait Implementations
impl Clone for ParameterBuilder
[src]
pub fn clone(&self) -> ParameterBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ParameterBuilder
[src]
pub fn default() -> ParameterBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParameterBuilder
[src]
impl Send for ParameterBuilder
[src]
impl Sync for ParameterBuilder
[src]
impl Unpin for ParameterBuilder
[src]
impl UnwindSafe for ParameterBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,