pub struct HttpError<T> {
pub status_code: u16,
pub data: T,
pub headers: HashMap<String, String>,
}Expand description
Generic Http Error
Fields§
§status_code: u16Http status code
data: TResponse body content
headers: HashMap<String, String>Response headers
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for HttpError<T>where
T: Freeze,
impl<T> RefUnwindSafe for HttpError<T>where
T: RefUnwindSafe,
impl<T> Send for HttpError<T>where
T: Send,
impl<T> Sync for HttpError<T>where
T: Sync,
impl<T> Unpin for HttpError<T>where
T: Unpin,
impl<T> UnsafeUnpin for HttpError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HttpError<T>where
T: UnwindSafe,
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