pub enum DuplicateKey {
Error,
Ignore,
Overwrite,
}Expand description
The behavior to take when a duplicate key is encountered during deserialization.
Variants§
Error
Immediately stop deserialization and return an error.
Ignore
Ignore the duplicate key and continue deserialization.
Overwrite
Overwrite the existing value with the new value.
Auto Trait Implementations§
impl Freeze for DuplicateKey
impl RefUnwindSafe for DuplicateKey
impl Send for DuplicateKey
impl Sync for DuplicateKey
impl Unpin for DuplicateKey
impl UnsafeUnpin for DuplicateKey
impl UnwindSafe for DuplicateKey
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