# Struct actix_web::dev::PayloadConfig[−][src]

    pub struct PayloadConfig { /* fields omitted */ }

Payload configuration for request's payload.

## Methods

###

`impl PayloadConfig`

[src]

####
ⓘImportant traits for &'a mut R

### Important traits for &'a mut R

`impl<'a, R> Read for &'a mut R where
R: Read + ?Sized, impl<'a, W> Write for &'a mut W where
W: Write + ?Sized, impl<'a, I> Iterator for &'a mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;`

`pub fn limit(&mut self, limit: usize) -> &mut Self`

[src]

Change max size of payload. By default max size is 256Kb

####
ⓘImportant traits for &'a mut R

### Important traits for &'a mut R

`impl<'a, R> Read for &'a mut R where
R: Read + ?Sized, impl<'a, W> Write for &'a mut W where
W: Write + ?Sized, impl<'a, I> Iterator for &'a mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;`

`pub fn mimetype(&mut self, mt: Mime) -> &mut Self`

[src]

Set required mime-type of the request. By default mime type is not enforced.

## Trait Implementations

###

`impl Default for PayloadConfig`

[src]

####

`fn default() -> Self`

[src]

Returns the "default value" for a type. Read more

## Auto Trait Implementations

###

`impl Send for PayloadConfig`

###

`impl Sync for PayloadConfig`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)