pub struct Part<S> {
pub headers: Vec<(Cow<'static, str>, Cow<'static, str>)>,
pub name: Cow<'static, str>,
pub filename: Option<Cow<'static, str>>,
pub content_type: Cow<'static, str>,
pub body: PartBody<S>,
}Available on crate feature
multipart only.Expand description
Represents a part in a multipart form.
Each part has a name, optional filename, content type, and a body, along with optional additional headers.
Fields§
§headers: Vec<(Cow<'static, str>, Cow<'static, str>)>Additional headers for this part.
name: Cow<'static, str>Name of the form field.
filename: Option<Cow<'static, str>>Optional filename for file parts.
content_type: Cow<'static, str>MIME content type for this part.
body: PartBody<S>Body content for this part.