pub struct JsonErrorEnvelope {
pub code: String,
pub message: String,
pub details: Option<Value>,
}Expand description
Error envelope payload for JSON endpoint failures.
Fields§
§code: StringMachine-readable Zynk error code.
message: StringHuman-readable error message.
details: Option<Value>Optional structured error details, omitted from JSON when absent.
Implementations§
Trait Implementations§
Source§impl Clone for JsonErrorEnvelope
impl Clone for JsonErrorEnvelope
Source§fn clone(&self) -> JsonErrorEnvelope
fn clone(&self) -> JsonErrorEnvelope
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 JsonErrorEnvelope
impl Debug for JsonErrorEnvelope
Source§impl<'de> Deserialize<'de> for JsonErrorEnvelope
impl<'de> Deserialize<'de> for JsonErrorEnvelope
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 PartialEq for JsonErrorEnvelope
impl PartialEq for JsonErrorEnvelope
Source§impl Serialize for JsonErrorEnvelope
impl Serialize for JsonErrorEnvelope
impl StructuralPartialEq for JsonErrorEnvelope
Auto Trait Implementations§
impl Freeze for JsonErrorEnvelope
impl RefUnwindSafe for JsonErrorEnvelope
impl Send for JsonErrorEnvelope
impl Sync for JsonErrorEnvelope
impl Unpin for JsonErrorEnvelope
impl UnsafeUnpin for JsonErrorEnvelope
impl UnwindSafe for JsonErrorEnvelope
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