Struct ic_agent::agent::agent_error::HttpErrorPayload
source · [−]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: u16The HTTP status code.
content_type: Option<String>The MIME type of content.
content: Vec<u8>The body of the error.
Trait Implementations
sourceimpl Debug for HttpErrorPayload
impl Debug for HttpErrorPayload
Auto Trait Implementations
impl RefUnwindSafe for HttpErrorPayload
impl Send for HttpErrorPayload
impl Sync for HttpErrorPayload
impl Unpin for HttpErrorPayload
impl UnwindSafe for HttpErrorPayload
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more