pub struct MultipartWriter {
pub boundary: String,
pub data: Vec<u8>,
/* private fields */
}
Fields§
§boundary: String
§data: Vec<u8>
Implementations§
Source§impl MultipartWriter
impl MultipartWriter
pub fn new() -> MultipartWriter
pub fn new_with_boundary(boundary: &str) -> MultipartWriter
pub fn add(&mut self, reader: impl Read, headers: &str) -> Result<u64>
pub fn finish(&mut self)
Auto Trait Implementations§
impl Freeze for MultipartWriter
impl RefUnwindSafe for MultipartWriter
impl Send for MultipartWriter
impl Sync for MultipartWriter
impl Unpin for MultipartWriter
impl UnwindSafe for MultipartWriter
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