Enum vega_lite_4::RemovableValue
source · pub enum RemovableValue<T: Clone> {
Default,
Remove,
Specified(T),
}
Expand description
Wrapper for a field that can be either the default value, null or specified
Variants§
Default
The default value for this field
Remove
This field should be removed
Specified(T)
This field should have the specified value
Trait Implementations§
source§impl<T: Clone + Clone> Clone for RemovableValue<T>
impl<T: Clone + Clone> Clone for RemovableValue<T>
source§fn clone(&self) -> RemovableValue<T>
fn clone(&self) -> RemovableValue<T>
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 moresource§impl<T: Clone> Default for RemovableValue<T>
impl<T: Clone> Default for RemovableValue<T>
source§fn default() -> RemovableValue<T>
fn default() -> RemovableValue<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for RemovableValue<T>where
T: Deserialize<'de> + Clone,
impl<'de, T> Deserialize<'de> for RemovableValue<T>where T: Deserialize<'de> + Clone,
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
source§impl From<&str> for RemovableValue<ClearUnion>
impl From<&str> for RemovableValue<ClearUnion>
source§impl From<&str> for RemovableValue<DomainElement>
impl From<&str> for RemovableValue<DomainElement>
source§impl From<&str> for RemovableValue<FluffyRange>
impl From<&str> for RemovableValue<FluffyRange>
source§impl From<&str> for RemovableValue<FluffyStream>
impl From<&str> for RemovableValue<FluffyStream>
source§impl From<&str> for RemovableValue<GridColorUnion>
impl From<&str> for RemovableValue<GridColorUnion>
source§impl From<&str> for RemovableValue<InlineDatasetValue>
impl From<&str> for RemovableValue<InlineDatasetValue>
source§impl From<&str> for RemovableValue<LegendText>
impl From<&str> for RemovableValue<LegendText>
source§impl From<&str> for RemovableValue<LegendUnion>
impl From<&str> for RemovableValue<LegendUnion>
source§impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefColor>
impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefColor>
source§impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefFill>
impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefFill>
source§impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefTooltip>
impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefTooltip>
source§impl From<&str> for RemovableValue<PredicateCompositionElement>
impl From<&str> for RemovableValue<PredicateCompositionElement>
source§impl From<&str> for RemovableValue<PrimitiveValue>
impl From<&str> for RemovableValue<PrimitiveValue>
source§impl From<&str> for RemovableValue<PurpleStream>
impl From<&str> for RemovableValue<PurpleStream>
source§impl From<&str> for RemovableValue<SelectionCompositionElement>
impl From<&str> for RemovableValue<SelectionCompositionElement>
source§impl From<&str> for RemovableValue<SelectionInit>
impl From<&str> for RemovableValue<SelectionInit>
source§impl From<&str> for RemovableValue<SelectionInitInterval>
impl From<&str> for RemovableValue<SelectionInitInterval>
source§impl From<&str> for RemovableValue<StyleColor>
impl From<&str> for RemovableValue<StyleColor>
source§impl From<&str> for RemovableValue<StyleTooltip>
impl From<&str> for RemovableValue<StyleTooltip>
source§impl From<&str> for RemovableValue<TitleUnion>
impl From<&str> for RemovableValue<TitleUnion>
source§impl From<&str> for RemovableValue<UrlDataInlineDataset>
impl From<&str> for RemovableValue<UrlDataInlineDataset>
source§impl<A, D, S> From<ArrayBase<S, D>> for RemovableValue<UrlData>where
A: Serialize,
D: Dimension,
S: Data<Elem = A>,
impl<A, D, S> From<ArrayBase<S, D>> for RemovableValue<UrlData>where A: Serialize, D: Dimension, S: Data<Elem = A>,
source§impl From<EncodingSortField> for RemovableValue<SortUnion>
impl From<EncodingSortField> for RemovableValue<SortUnion>
source§fn from(v: EncodingSortField) -> Self
fn from(v: EncodingSortField) -> Self
Converts to this type from the input type.
source§impl<T: Clone> From<T> for RemovableValue<T>
impl<T: Clone> From<T> for RemovableValue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for RemovableValue<T>where T: RefUnwindSafe,
impl<T> Send for RemovableValue<T>where T: Send,
impl<T> Sync for RemovableValue<T>where T: Sync,
impl<T> Unpin for RemovableValue<T>where T: Unpin,
impl<T> UnwindSafe for RemovableValue<T>where T: UnwindSafe,
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