pub enum KeyVal {
    Filter(Spanned<Filter>, Spanned<Filter>),
    Str(StringOption<Spanned<Filter>>),
}
Expand description

An element of an object construction filter.

For example, the object construction filter {(.): 1, b: 2} consists of two elements, namely (.): 1 and b: 2.

Variants

Filter(Spanned<Filter>, Spanned<Filter>)

Both key and value are proper filters, e.g. {(.+1): .+2}

Str(StringOption<Spanned<Filter>>)

Key is a string, and value is an optional filter, e.g. {a: 1, b} (this is equivalent to {("a"): 1, ("b"): .b})

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The number of items that this chain link consists of.
Append the elements in this link to the chain.

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.