#[non_exhaustive]pub enum EmptyFilePolicy {
Report,
Skip,
}Expand description
A file input left empty (filename="" and no data).
§Examples
use form_net::{EmptyFilePolicy, Policy};
assert_eq!(Policy::DEFAULT.empty_files, EmptyFilePolicy::Report);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.
Report
Report it as a file part with an empty file name (default).
Skip
Produce nothing for it; it does not count against max_files.
Trait Implementations§
Source§impl Clone for EmptyFilePolicy
impl Clone for EmptyFilePolicy
impl Copy for EmptyFilePolicy
Source§impl Debug for EmptyFilePolicy
impl Debug for EmptyFilePolicy
impl Eq for EmptyFilePolicy
Source§impl PartialEq for EmptyFilePolicy
impl PartialEq for EmptyFilePolicy
impl StructuralPartialEq for EmptyFilePolicy
Auto Trait Implementations§
impl Freeze for EmptyFilePolicy
impl RefUnwindSafe for EmptyFilePolicy
impl Send for EmptyFilePolicy
impl Sync for EmptyFilePolicy
impl Unpin for EmptyFilePolicy
impl UnsafeUnpin for EmptyFilePolicy
impl UnwindSafe for EmptyFilePolicy
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