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>

source§

fn clone(&self) -> RemovableValue<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + Clone> Debug for RemovableValue<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Clone> Default for RemovableValue<T>

source§

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,

source§

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<T> From<&[T]> for RemovableValue<UrlData>where T: Serialize,

source§

fn from(v: &[T]) -> Self

Converts to this type from the input type.
source§

impl<T> From<&Vec<T, Global>> for RemovableValue<UrlData>where T: Serialize,

source§

fn from(v: &Vec<T>) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ClearUnion>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Color>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalAxisPropertyFontStyleNull>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalAxisPropertyStringNull>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalPredicateValueDefTextExprRefText>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalValueDefGradientStringNullExprRefValue>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalValueDefNumberExprRefPredicateComposition>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalValueDefNumberExprRefSelectionComposition>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<ConditionalValueDefTextExprRefText>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Day>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<DomainElement>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Equal>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Field>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<FluffyRange>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<FluffyStream>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Format>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<GridColorUnion>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<InitValue>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<InlineDatasetValue>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<LegendText>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<LegendUnion>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Lt>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefColor>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefFill>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<MarkConfigExprOrSignalRefTooltip>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Month>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<OnUnion>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<PredicateCompositionElement>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<PrimitiveValue>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<PurpleStream>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<RangeM>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<RangeText>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Scheme>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<SelectionCompositionElement>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<SelectionInit>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<SelectionInitInterval>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<String>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<StyleColor>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<StyleFill>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<StyleTooltip>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<TitleUnion>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<Translate>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl From<&str> for RemovableValue<UrlDataInlineDataset>

source§

fn from(v: &str) -> Self

Converts to this type from the input type.
source§

impl<A, D, S> From<ArrayBase<S, D>> for RemovableValue<UrlData>where A: Serialize, D: Dimension, S: Data<Elem = A>,

source§

fn from(v: ArrayBase<S, D>) -> Self

Converts to this type from the input type.
source§

impl From<EncodingSortField> for RemovableValue<SortUnion>

source§

fn from(v: EncodingSortField) -> Self

Converts to this type from the input type.
source§

impl<R> From<Reader<R>> for RemovableValue<UrlData>where R: Read,

source§

fn from(v: Reader<R>) -> Self

Converts to this type from the input type.
source§

impl From<Sort> for RemovableValue<SortUnion>

source§

fn from(v: Sort) -> Self

Converts to this type from the input type.
source§

impl<T: Clone> From<T> for RemovableValue<T>

source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl<T> Serialize for RemovableValue<T>where T: Serialize + Clone,

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,