pub enum Rejection {
Error(ContentError),
Violations(Vec<Violation>),
}Expand description
Why content was refused: the two kinds of failure design/errors.md defines. It is exhaustive, so that an application can match it without a wildcard; adding a kind is a breaking change.
Variants§
Error(ContentError)
Parsing stopped with a fatal error.
Violations(Vec<Violation>)
The body parsed, but some declared fields could not be accepted: every one, in declaration order.
Trait Implementations§
impl Eq for Rejection
impl StructuralPartialEq for Rejection
Auto Trait Implementations§
impl Forget for Rejection
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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