Struct reqwest::multipart::Part
[−]
[src]
pub struct Part { /* fields omitted */ }
A field in a multipart form.
Methods
impl Part
[src]
fn text<T>(value: T) -> Part where
T: Into<Cow<'static, str>>,
[src]
T: Into<Cow<'static, str>>,
Makes a text parameter.
fn reader<T: Read + Send + 'static>(value: T) -> Part
[src]
Adds a generic reader.
Does not set filename or mime.
fn reader_with_length<T: Read + Send + 'static>(value: T, length: u64) -> Part
[src]
Adds a generic reader with known length.
Does not set filename or mime.
fn file<T: AsRef<Path>>(path: T) -> Result<Part>
[src]
fn mime(self, mime: Mime) -> Part
[src]
Sets the mime, builder style.
fn file_name<T: Into<Cow<'static, str>>>(self, filename: T) -> Part
[src]
Sets the filename, builder style.