pub struct ErrorEnvelope {
pub code: String,
pub message: String,
}Expand description
API error response envelope.
Serialized to JSON as: { "error": { "code": "...", "message": "..." } }
Fields§
§code: StringMachine-readable error code (e.g., “RUN_NOT_FOUND”).
message: StringHuman-readable error message.
Trait Implementations§
Source§impl Debug for ErrorEnvelope
impl Debug for ErrorEnvelope
Auto Trait Implementations§
impl Freeze for ErrorEnvelope
impl RefUnwindSafe for ErrorEnvelope
impl Send for ErrorEnvelope
impl Sync for ErrorEnvelope
impl Unpin for ErrorEnvelope
impl UnsafeUnpin for ErrorEnvelope
impl UnwindSafe for ErrorEnvelope
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