Struct ForgeApiResponse
pub struct ForgeApiResponse {
pub status: u16,
pub body: Value,
}Expand description
The outcome of a forge API request: the HTTP status and decoded JSON body
(Null when the response had no body). Non-2xx statuses are carried here
rather than raised, so the caller inspects the forge’s own error envelope.
Fields§
§status: u16§body: ValueTrait Implementations§
Source§impl Clone for ForgeApiResponse
impl Clone for ForgeApiResponse
Source§fn clone(&self) -> ForgeApiResponse
fn clone(&self) -> ForgeApiResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForgeApiResponse
impl RefUnwindSafe for ForgeApiResponse
impl Send for ForgeApiResponse
impl Sync for ForgeApiResponse
impl Unpin for ForgeApiResponse
impl UnsafeUnpin for ForgeApiResponse
impl UnwindSafe for ForgeApiResponse
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