pub struct HttpErrorBody {
pub name: Option<String>,
pub message: Option<String>,
pub data: Option<Value>,
}Expand description
Helper to parse OpenCode’s NamedError response body.
Fields§
§name: Option<String>Error name (e.g., “NotFound”, “ValidationError”).
message: Option<String>Error message.
data: Option<Value>Additional error data.
Implementations§
Trait Implementations§
Source§impl Clone for HttpErrorBody
impl Clone for HttpErrorBody
Source§fn clone(&self) -> HttpErrorBody
fn clone(&self) -> HttpErrorBody
Returns a duplicate of the value. Read more
1.0.0 · Source§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 HttpErrorBody
impl RefUnwindSafe for HttpErrorBody
impl Send for HttpErrorBody
impl Sync for HttpErrorBody
impl Unpin for HttpErrorBody
impl UnwindSafe for HttpErrorBody
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