Struct actix_multipart::form::json::JsonConfig
source · pub struct JsonConfig { /* private fields */ }
Expand description
Configuration for the Json
field reader.
Implementations§
source§impl JsonConfig
impl JsonConfig
pub fn error_handler<F>(self, f: F) -> Selfwhere F: Fn(JsonFieldError, &HttpRequest) -> Error + Send + Sync + 'static,
sourcepub fn validate_content_type(self, validate_content_type: bool) -> Self
pub fn validate_content_type(self, validate_content_type: bool) -> Self
Sets whether or not the field must have a valid Content-Type
header to be parsed.
Trait Implementations§
source§impl Clone for JsonConfig
impl Clone for JsonConfig
source§fn clone(&self) -> JsonConfig
fn clone(&self) -> JsonConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more