Struct actix_multipart::form::text::TextConfig
source · pub struct TextConfig { /* private fields */ }
Expand description
Configuration for the Text
field reader.
Implementations§
source§impl TextConfig
impl TextConfig
sourcepub fn error_handler<F>(self, f: F) -> Self
pub fn error_handler<F>(self, f: F) -> Self
Sets custom error handler.
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.
Note that an empty Content-Type
is also accepted, as the multipart specification defines
text/plain
as the default for text fields.
Trait Implementations§
source§impl Clone for TextConfig
impl Clone for TextConfig
source§fn clone(&self) -> TextConfig
fn clone(&self) -> TextConfig
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 Freeze for TextConfig
impl !RefUnwindSafe for TextConfig
impl Send for TextConfig
impl Sync for TextConfig
impl Unpin for TextConfig
impl !UnwindSafe for TextConfig
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