pub struct HttpErrorPayload {
pub status: u16,
pub content_type: Option<String>,
pub content: Vec<u8>,
}
Expand description
A HTTP error from the replica.
Fields§
§status: u16
The HTTP status code.
content_type: Option<String>
The MIME type of content
.
content: Vec<u8>
The body of the error.
Trait Implementations§
source§impl Debug for HttpErrorPayload
impl Debug for HttpErrorPayload
Auto Trait Implementations§
impl Freeze for HttpErrorPayload
impl RefUnwindSafe for HttpErrorPayload
impl Send for HttpErrorPayload
impl Sync for HttpErrorPayload
impl Unpin for HttpErrorPayload
impl UnwindSafe for HttpErrorPayload
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