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) -> Self
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for JsonConfig
impl Send for JsonConfig
impl Sync for JsonConfig
impl Unpin for JsonConfig
impl !UnwindSafe for JsonConfig
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