pub struct HubResponse {
pub status: u16,
pub body: Option<Value>,
}Expand description
One hub response: the status plus the parsed JSON body when there was one.
Fields§
§status: u16The HTTP status code.
body: Option<Value>The parsed JSON body, None when the body was empty or not JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HubResponse
impl RefUnwindSafe for HubResponse
impl Send for HubResponse
impl Sync for HubResponse
impl Unpin for HubResponse
impl UnsafeUnpin for HubResponse
impl UnwindSafe for HubResponse
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