Struct actix_easy_multipart::text::TextConfig
source · pub struct TextConfig { /* private fields */ }
Expand description
Configuration for the Text
field reader.
Implementations
sourceimpl TextConfig
impl TextConfig
pub fn error_handler<F>(self, f: F) -> Selfwhere
F: Fn(TextError, &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.
Note that an empty Content-Type
is also accepted, as the multipart specification defines
text/plain
as the default for text fields.
Trait Implementations
sourceimpl Clone for TextConfig
impl Clone for TextConfig
sourcefn clone(&self) -> TextConfig
fn clone(&self) -> TextConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 TextConfig
impl Send for TextConfig
impl Sync for TextConfig
impl Unpin for TextConfig
impl !UnwindSafe for TextConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more