pub struct Multipart {
pub upload: MultipartUpload,
pub fields: Vec<(Cow<'static, str>, Cow<'static, str>)>,
pub payload_json: Option<String>,
}
Expand description
Holder for multipart body. Contains upload data, multipart fields, and payload_json for creating requests with attachments.
Fields§
§upload: MultipartUpload
§fields: Vec<(Cow<'static, str>, Cow<'static, str>)>
Multipart text fields that are sent with the form data as individual fields. If a certain
endpoint does not support passing JSON body via payload_json
, this must be used instead.
payload_json: Option<String>
JSON body that will set as the form value as payload_json
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Multipart
impl RefUnwindSafe for Multipart
impl Send for Multipart
impl Sync for Multipart
impl Unpin for Multipart
impl UnwindSafe for Multipart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more