pub struct Response<'a> {
pub status: u16,
pub media_type: &'a str,
pub body: &'a [u8],
pub content_length: usize,
pub digest: Option<Digest>,
pub next: Option<NextLink<'a>>,
}Expand description
Metadata and body to pass to an HTTP transport.
Fields§
§status: u16§media_type: &'a str§body: &'a [u8]§content_length: usizeGET representation length, even when HEAD suppresses the body.
digest: Option<Digest>§next: Option<NextLink<'a>>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnsafeUnpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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