pub struct BytesResponse {
pub status: u16,
pub body: Vec<u8>,
}Expand description
A completed HTTP response with a binary body (for archive downloads).
Fields§
§status: u16§body: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for BytesResponse
impl Clone for BytesResponse
Auto Trait Implementations§
impl Forget for BytesResponse
impl Freeze for BytesResponse
impl Move for BytesResponse
impl RefUnwindSafe for BytesResponse
impl Send for BytesResponse
impl Sync for BytesResponse
impl Unpin for BytesResponse
impl UnsafeUnpin for BytesResponse
impl UnwindSafe for BytesResponse
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