pub enum Action {
Error,
Remove,
Ignore,
}Expand description
What to do when a forbidden key is found.
proto_action and constructor_action each take one of these. The default
is Action::Error.
Variants§
Error
Reject the input with Error::ForbiddenProperty.
Remove
Delete the offending key from the result.
Ignore
Skip the check for this key and keep it.
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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