pub enum MapEntry {
Skip,
Keep {
key: String,
value: Value,
recurse: bool,
},
}Expand description
The result of mapping a single (key, value) pair.
Variants§
Skip
Drop this entry from the result.
Keep
Keep the entry with the given key and value. recurse controls whether nested
objects/arrays in the value are mapped (when deep is set); it defaults to true
via MapEntry::keep.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MapEntry
Auto Trait Implementations§
impl Freeze for MapEntry
impl RefUnwindSafe for MapEntry
impl Send for MapEntry
impl Sync for MapEntry
impl Unpin for MapEntry
impl UnsafeUnpin for MapEntry
impl UnwindSafe for MapEntry
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