pub struct ValidatedMultipartFormConfig { /* private fields */ }
Expand description
Configure the behaviour of the ValidatedMultipartForm extractor
Usage
Add a ValidatedFormConfig
to your actix app data
use actix_validated_forms::multipart::{ValidatedMultipartFormConfig, MultipartLoadConfig};
scope("/").app_data(
ValidatedMultipartFormConfig::default().config(
MultipartLoadConfig::default().file_limit(25 * 1024 * 1024) // 25 MiB
)
);
Implementations
pub fn error_handler<F>(self, f: F) -> Self where
F: Fn(ValidatedFormError<MultipartErrorWrapper>, &HttpRequest) -> Error + 'static,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ValidatedMultipartFormConfig
impl !Send for ValidatedMultipartFormConfig
impl !Sync for ValidatedMultipartFormConfig
impl Unpin for ValidatedMultipartFormConfig
impl !UnwindSafe for ValidatedMultipartFormConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more