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(String, Option<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
sourceimpl<'de> Deserialize<'de> for KeyVal
impl<'de> Deserialize<'de> for KeyVal
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for KeyVal
impl Send for KeyVal
impl Sync for KeyVal
impl Unpin for KeyVal
impl UnwindSafe for KeyVal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more