pub struct ExceptionRecord {
pub error_type: String,
pub module: String,
pub message: String,
pub attributes: Option<BTreeMap<String, Value>>,
pub failure: Option<FailureMetadata>,
pub cause: Option<Box<EnvelopeNode>>,
pub context: Option<Box<EnvelopeNode>>,
pub exceptions: Option<Vec<EnvelopeNode>>,
}Expand description
A fully rendered exception record in the transport protocol.
Fields§
§error_type: StringUnqualified error type.
module: StringModule or logical namespace defining the error.
message: StringHuman-readable error message.
attributes: Option<BTreeMap<String, Value>>Public structured attributes.
failure: Option<FailureMetadata>Recovery metadata for classified failures.
cause: Option<Box<EnvelopeNode>>Explicitly chained cause.
context: Option<Box<EnvelopeNode>>Implicit execution context.
exceptions: Option<Vec<EnvelopeNode>>Members of a grouped error.
Trait Implementations§
Source§impl Clone for ExceptionRecord
impl Clone for ExceptionRecord
Source§impl Debug for ExceptionRecord
impl Debug for ExceptionRecord
Source§impl<'de> Deserialize<'de> for ExceptionRecord
impl<'de> Deserialize<'de> for ExceptionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ErrorEnvelope> for ExceptionRecord
impl From<ErrorEnvelope> for ExceptionRecord
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ExceptionRecord> for EnvelopeNode
impl From<ExceptionRecord> for EnvelopeNode
Source§fn from(value: ExceptionRecord) -> Self
fn from(value: ExceptionRecord) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExceptionRecord
impl PartialEq for ExceptionRecord
Source§impl Serialize for ExceptionRecord
impl Serialize for ExceptionRecord
impl StructuralPartialEq for ExceptionRecord
Auto Trait Implementations§
impl Freeze for ExceptionRecord
impl RefUnwindSafe for ExceptionRecord
impl Send for ExceptionRecord
impl Sync for ExceptionRecord
impl Unpin for ExceptionRecord
impl UnsafeUnpin for ExceptionRecord
impl UnwindSafe for ExceptionRecord
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