pub struct HttpRequestResultRaw {
pub status: u16,
pub result_header: Option<String>,
pub content_length: Option<u64>,
pub body: Box<dyn AsyncRead + Send + Unpin>,
}
Expand description
The raw response from the server, including an async streaming response body.
Fields§
§status: u16
HTTP response code.
result_header: Option<String>
The value of the Dropbox-API-Result
header, if present.
content_length: Option<u64>
The value of the Content-Length
header, if present.
body: Box<dyn AsyncRead + Send + Unpin>
The response body stream.
Auto Trait Implementations§
impl Freeze for HttpRequestResultRaw
impl !RefUnwindSafe for HttpRequestResultRaw
impl Send for HttpRequestResultRaw
impl !Sync for HttpRequestResultRaw
impl Unpin for HttpRequestResultRaw
impl !UnwindSafe for HttpRequestResultRaw
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