pub struct Error {
pub details: Map<String, Value>,
pub error: String,
pub errors: Vec<String>,
pub fallback: Option<String>,
pub message: String,
pub status: Option<i64>,
}Expand description
Error
Fields§
§details: Map<String, Value>Optional structured detail (e.g. per-field validation errors from a changeset). Shape is endpoint-specific.
error: StringStable machine-readable error code (snake_case)
errors: Vec<String>Optional list of human-readable validation messages, used when
multiple fields fail validation in one request. Distinct from
details, which is a structured map.
fallback: Option<String>Optional client-actionable fallback hint. Currently used by fee
sponsorship denials to suggest self_fund.
message: StringHuman-readable error message
status: Option<i64>Optional numeric status code from an upstream system, when the error originates from a proxied call (e.g. RPC upstream).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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