pub struct ErrorQuality {
pub has_code: bool,
pub has_message: bool,
pub has_location: bool,
pub has_fix: bool,
}Expand description
A graded assessment of how actionable a failure is — refining the binary
structured_error of Outcome. Each component an agent can use to
self-correct contributes equally to the score.
Fields§
§has_code: boolA stable, machine-branchable error code (e.g. E_BAD_ARG).
has_message: boolA human-readable message.
has_location: boolWhere it failed (line, argument index, field path).
has_fix: boolA remediation hint/suggestion the agent can act on.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorQuality
impl Clone for ErrorQuality
Source§fn clone(&self) -> ErrorQuality
fn clone(&self) -> ErrorQuality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorQuality
Source§impl Debug for ErrorQuality
impl Debug for ErrorQuality
Source§impl Default for ErrorQuality
impl Default for ErrorQuality
Source§fn default() -> ErrorQuality
fn default() -> ErrorQuality
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorQuality
impl RefUnwindSafe for ErrorQuality
impl Send for ErrorQuality
impl Sync for ErrorQuality
impl Unpin for ErrorQuality
impl UnsafeUnpin for ErrorQuality
impl UnwindSafe for ErrorQuality
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