pub enum DataLoss {
None,
TopLevel,
Nested,
}Expand description
Whether an encoder is allowed to drop input keys, and where.
Variants§
None
Encoder must preserve every input key (top-level and nested). Failing this is a bug.
TopLevel
Encoder may drop the wrapping object’s top-level keys (sibling fields of the chosen array). It must still preserve all keys inside the array elements.
Nested
Encoder may drop nested-object keys inside array elements (e.g. older naive CSV that only kept primitive columns).
Trait Implementations§
impl Copy for DataLoss
impl Eq for DataLoss
impl StructuralPartialEq for DataLoss
Auto Trait Implementations§
impl Freeze for DataLoss
impl RefUnwindSafe for DataLoss
impl Send for DataLoss
impl Sync for DataLoss
impl Unpin for DataLoss
impl UnsafeUnpin for DataLoss
impl UnwindSafe for DataLoss
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.