pub struct DagMlErrorDescriptor {
pub category: String,
pub code: String,
pub severity: String,
pub message: String,
pub remediation_hint: String,
pub context: BTreeMap<String, Value>,
}Expand description
A stable ADR-11 error payload that can be serialized across bindings.
Fields§
§category: StringADR-11 category, for example validation, runtime or controller.
code: StringStable machine-readable code inside the category.
severity: StringError severity. Current failing variants use error.
message: StringHuman-readable error message.
remediation_hint: StringOne-sentence remediation hint suitable for user-facing diagnostics.
context: BTreeMap<String, Value>Structured debug fields that remain stable enough for logs and tests.
Trait Implementations§
Source§impl Clone for DagMlErrorDescriptor
impl Clone for DagMlErrorDescriptor
Source§fn clone(&self) -> DagMlErrorDescriptor
fn clone(&self) -> DagMlErrorDescriptor
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 moreSource§impl Debug for DagMlErrorDescriptor
impl Debug for DagMlErrorDescriptor
Source§impl<'de> Deserialize<'de> for DagMlErrorDescriptor
impl<'de> Deserialize<'de> for DagMlErrorDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DagMlErrorDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DagMlErrorDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DagMlErrorDescriptor
impl PartialEq for DagMlErrorDescriptor
Source§fn eq(&self, other: &DagMlErrorDescriptor) -> bool
fn eq(&self, other: &DagMlErrorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DagMlErrorDescriptor
impl Serialize for DagMlErrorDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DagMlErrorDescriptor
Auto Trait Implementations§
impl Freeze for DagMlErrorDescriptor
impl RefUnwindSafe for DagMlErrorDescriptor
impl Send for DagMlErrorDescriptor
impl Sync for DagMlErrorDescriptor
impl Unpin for DagMlErrorDescriptor
impl UnsafeUnpin for DagMlErrorDescriptor
impl UnwindSafe for DagMlErrorDescriptor
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