pub struct NodeError {
pub code: String,
pub message: String,
pub kind: ErrorKind,
pub retryable: bool,
pub source: Option<NodeErrorSource>,
pub details: Value,
}Expand description
A single error in a node’s {errors} envelope.
Fields§
§code: StringStable, author/UI-facing error code (open-ended string, per JSON:API).
message: StringRequired human-readable message (one concise sentence).
kind: ErrorKindCoarse routing/retry classification.
retryable: boolExplicit retryability — never inferred from kind (Temporal’s non_retryable).
source: Option<NodeErrorSource>Optional provenance.
details: ValueFree-form structured detail; omitted from the wire when null.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeError
impl<'de> Deserialize<'de> for NodeError
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
impl StructuralPartialEq for NodeError
Auto Trait Implementations§
impl Freeze for NodeError
impl RefUnwindSafe for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl UnsafeUnpin for NodeError
impl UnwindSafe for NodeError
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