Struct tame_gcs::objects::Multipart [−][src]
A multipart payload that should be used as the body of a multipart insert request
Implementations
impl<B> Multipart<B>
[src][−]
pub fn wrap(
body: B,
body_length: u64,
metadata: &Metadata
) -> Result<Self, Error>
[src][−]
body: B,
body_length: u64,
metadata: &Metadata
) -> Result<Self, Error>
Wraps some body content and its metadata into a Multipart suitable for being
sent as an HTTP request body, the body will need to implement std::io::Read
to be able to be used as intended.
pub fn total_len(&self) -> u64
[src][−]
The total length (Content-Length) of this multipart body
Trait Implementations
impl<B: AsyncRead + Unpin> AsyncRead for Multipart<B>
[src][+]
impl<B> Read for Multipart<B> where
B: Read,
[src][+]
B: Read,
Auto Trait Implementations
impl<B> RefUnwindSafe for Multipart<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Multipart<B> where
B: Send,
B: Send,
impl<B> Sync for Multipart<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Multipart<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Multipart<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
[src][+]
R: AsyncRead + ?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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,