pub enum OnUnknown {
Error,
SkipContainingType,
}Expand description
How to handle a field whose type cannot be mapped to a codec.
Variants§
Error
Aggregate a diagnostic and fail generate.
SkipContainingType
Emit a cargo:warning and omit the containing type — and,
transitively, every type referencing it — from the output.
Trait Implementations§
impl Copy for OnUnknown
impl Eq for OnUnknown
impl StructuralPartialEq for OnUnknown
Auto Trait Implementations§
impl Freeze for OnUnknown
impl RefUnwindSafe for OnUnknown
impl Send for OnUnknown
impl Sync for OnUnknown
impl Unpin for OnUnknown
impl UnsafeUnpin for OnUnknown
impl UnwindSafe for OnUnknown
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