#[non_exhaustive]pub enum Verdict {
Continue,
Skip,
Refuse(Refusal),
}Expand description
What an inspector says about what it saw.
§Examples
use form_net::{Refusal, Verdict};
let v = Verdict::Refuse(Refusal::new(422, "example.not_allowed"));
assert!(matches!(v, Verdict::Refuse(r) if r.status == 422));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.
Continue
Go on.
Skip
Discard the rest of this part (or this field); it still counts against the budgets and is left out of the result.
Refuse(Refusal)
Stop the parse with this refusal.
Trait Implementations§
impl Copy for Verdict
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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