Struct attohttpc::MultipartBuilder [−][src]
A builder for creating a Multipart
body.
Implementations
impl<'key, 'data> MultipartBuilder<'key, 'data>
[src]
pub fn new() -> Self
[src]
Creates a new MultipartBuilder
.
pub fn with_text(self, name: &'key str, text: &'data str) -> Self
[src]
Adds a text field to the form.
pub fn with_file(self, file: MultipartFile<'key, 'data>) -> Self
[src]
Adds a MultipartFile
to the form.
pub fn build(self) -> Result<Multipart<'data>>
[src]
Creates a Multipart
to be used as a body.
Trait Implementations
impl<'key, 'data> Clone for MultipartBuilder<'key, 'data>
[src]
fn clone(&self) -> MultipartBuilder<'key, 'data>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'key, 'data> Debug for MultipartBuilder<'key, 'data>
[src]
impl<'key, 'data> Default for MultipartBuilder<'key, 'data>
[src]
fn default() -> MultipartBuilder<'key, 'data>
[src]
Auto Trait Implementations
impl<'key, 'data> RefUnwindSafe for MultipartBuilder<'key, 'data>
[src]
impl<'key, 'data> Send for MultipartBuilder<'key, 'data>
[src]
impl<'key, 'data> Sync for MultipartBuilder<'key, 'data>
[src]
impl<'key, 'data> Unpin for MultipartBuilder<'key, 'data>
[src]
impl<'key, 'data> UnwindSafe for MultipartBuilder<'key, 'data>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,