pub struct HttpBody {
pub content_type: String,
pub data: Vec<u8>,
}Expand description
What a method answering with a file rather than JSON returns
(google.api.HttpBody): the file’s bytes, as the server sent them, and
their media type.
Fields§
§content_type: StringThe media type the response’s Content-Type names, such as
application/pdf; empty when it names none.
data: Vec<u8>The file’s bytes.
Trait Implementations§
impl Eq for HttpBody
impl StructuralPartialEq for HttpBody
Auto Trait Implementations§
impl Forget for HttpBody
impl Freeze for HttpBody
impl Move for HttpBody
impl RefUnwindSafe for HttpBody
impl Send for HttpBody
impl Sync for HttpBody
impl Unpin for HttpBody
impl UnsafeUnpin for HttpBody
impl UnwindSafe for HttpBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.