pub struct DataErrorDescriptor {
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, data or compatibility.
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 DataErrorDescriptor
impl Clone for DataErrorDescriptor
Source§fn clone(&self) -> DataErrorDescriptor
fn clone(&self) -> DataErrorDescriptor
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 DataErrorDescriptor
impl Debug for DataErrorDescriptor
Source§impl<'de> Deserialize<'de> for DataErrorDescriptor
impl<'de> Deserialize<'de> for DataErrorDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataErrorDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataErrorDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DataErrorDescriptor
impl PartialEq for DataErrorDescriptor
Source§fn eq(&self, other: &DataErrorDescriptor) -> bool
fn eq(&self, other: &DataErrorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DataErrorDescriptor
impl Serialize for DataErrorDescriptor
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 DataErrorDescriptor
Auto Trait Implementations§
impl Freeze for DataErrorDescriptor
impl RefUnwindSafe for DataErrorDescriptor
impl Send for DataErrorDescriptor
impl Sync for DataErrorDescriptor
impl Unpin for DataErrorDescriptor
impl UnsafeUnpin for DataErrorDescriptor
impl UnwindSafe for DataErrorDescriptor
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