pub struct UploadValidator<'a> { /* private fields */ }Expand description
Fluent validator for uploaded files.
Obtained by calling UploadedFile::validate(). Chain .max_size() and
.accept() calls, then call .check() to finalize. All constraint
violations are collected before returning.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UploadValidator<'a>
impl<'a> RefUnwindSafe for UploadValidator<'a>
impl<'a> Send for UploadValidator<'a>
impl<'a> Sync for UploadValidator<'a>
impl<'a> Unpin for UploadValidator<'a>
impl<'a> UnsafeUnpin for UploadValidator<'a>
impl<'a> UnwindSafe for UploadValidator<'a>
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