pub struct ErrorBody {
pub message: Option<String>,
pub error_type: Option<String>,
pub param: Option<String>,
pub code: Option<JsonPayload>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示通用的 API 错误载荷结构。
Fields§
§message: Option<String>错误消息。
error_type: Option<String>错误类型。
param: Option<String>错误参数。
code: Option<JsonPayload>错误码。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorBody
impl<'de> Deserialize<'de> for ErrorBody
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 ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnsafeUnpin for ErrorBody
impl UnwindSafe for ErrorBody
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