pub struct HttpResponse {
pub status_code: u16,
pub content_type: Option<String>,
pub www_authenticate: Option<String>,
pub dpop_nonce: Option<String>,
pub body: Option<String>,
}
Expand description
Represents an HTTP response received from a server.
Fields§
§status_code: u16
The HTTP status code of the response (e.g., 200 for success, 404 for Not Found).
content_type: Option<String>
The content type header
www_authenticate: Option<String>
The www authenticate header
dpop_nonce: Option<String>
The dpop nonce
body: Option<String>
The optional body content of the response. None if there is no body content (String).
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Source§fn clone(&self) -> HttpResponse
fn clone(&self) -> HttpResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnwindSafe for HttpResponse
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