pub struct Report {
pub schema_version: u32,
pub code: &'static str,
pub message: String,
pub step: Option<String>,
pub instance: Option<String>,
pub remediation: String,
pub context: ErrorContext,
}Expand description
The serialized error shape agents consume in --json mode.
Fields§
§schema_version: u32§code: &'static str§message: String§step: Option<String>§instance: Option<String>§remediation: String§context: ErrorContextImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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