#[non_exhaustive]pub enum SerdeMode {
Normal,
Dumping,
}
Expand description
A mode of (de)serialization. Useful to alternate a behavior depending on a context.
§Availability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for SerdeMode
impl Eq for SerdeMode
impl StructuralPartialEq for SerdeMode
Auto Trait Implementations§
impl Freeze for SerdeMode
impl RefUnwindSafe for SerdeMode
impl Send for SerdeMode
impl Sync for SerdeMode
impl Unpin for SerdeMode
impl UnwindSafe for SerdeMode
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