pub struct MultipartConfig {
pub error_handler: Option<Box<dyn Fn(MultipartError) -> HttpResponse + Send + Sync + 'static>>,
}Expand description
Config for Multipart data, insert with actix_web::App::app_data to actix
Fields§
§error_handler: Option<Box<dyn Fn(MultipartError) -> HttpResponse + Send + Sync + 'static>>Implementations§
Source§impl MultipartConfig
impl MultipartConfig
pub fn set_error_handler<F>(self, error_handler: F) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultipartConfig
impl !RefUnwindSafe for MultipartConfig
impl Send for MultipartConfig
impl Sync for MultipartConfig
impl Unpin for MultipartConfig
impl !UnwindSafe for MultipartConfig
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