pub struct ConditionalPredicateValueDefNumberNullExprRefElementBuilder { /* private fields */ }
Expand description
Builder for ConditionalPredicateValueDefNumberNullExprRefElement
.
Implementations§
source§impl ConditionalPredicateValueDefNumberNullExprRefElementBuilder
impl ConditionalPredicateValueDefNumberNullExprRefElementBuilder
sourcepub fn test<VALUE: Into<PredicateCompositionElement>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn test<VALUE: Into<PredicateCompositionElement>>( &mut self, value: VALUE ) -> &mut Self
Predicate for triggering the condition
sourcepub fn value<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn value<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
A constant value in visual domain (e.g., "red"
/ "#0099ff"
/ gradient
definition for color, values
between 0
to 1
for opacity).
sourcepub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Vega expression (which can refer to Vega-Lite parameters).
sourcepub fn build(
&self
) -> Result<ConditionalPredicateValueDefNumberNullExprRefElement, ConditionalPredicateValueDefNumberNullExprRefElementBuilderError>
pub fn build( &self ) -> Result<ConditionalPredicateValueDefNumberNullExprRefElement, ConditionalPredicateValueDefNumberNullExprRefElementBuilderError>
Builds a new ConditionalPredicateValueDefNumberNullExprRefElement
.
Errors
If a required field has not been initialized.
Trait Implementations§
source§impl Clone for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
impl Clone for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
source§fn clone(&self) -> ConditionalPredicateValueDefNumberNullExprRefElementBuilder
fn clone(&self) -> ConditionalPredicateValueDefNumberNullExprRefElementBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
impl Send for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
impl Sync for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
impl Unpin for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
impl UnwindSafe for ConditionalPredicateValueDefNumberNullExprRefElementBuilder
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