Struct reqwest::multipart::Part[][src]

pub struct Part { /* fields omitted */ }

A field in a multipart form.

Methods

impl Part
[src]

Makes a text parameter.

Makes a new parameter from arbitrary bytes

Adds a generic reader.

Does not set filename or mime.

Adds a generic reader with known length.

Does not set filename or mime.

Makes a file parameter.

Errors

Errors when the file cannot be opened.

Tries to set the mime of this part.

Sets the filename, builder style.

Returns a reference to the map with additional header fields

Returns a reference to the map with additional header fields

Trait Implementations

impl Debug for Part
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Part

impl !Sync for Part