pub struct HttpExceptionMeta {
pub type_field: String,
pub value: String,
}Expand description
Represents additional metadata in the swap API error response.
Each item in the meta field of SwapRequestError will be deserialized into this structure.
It provides more context about the error, such as the affected parameters or values.
Fields§
§type_field: StringThe type of metadata.
value: StringThe value associated with this metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpExceptionMeta
impl<'de> Deserialize<'de> for HttpExceptionMeta
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 HttpExceptionMeta
impl RefUnwindSafe for HttpExceptionMeta
impl Send for HttpExceptionMeta
impl Sync for HttpExceptionMeta
impl Unpin for HttpExceptionMeta
impl UnwindSafe for HttpExceptionMeta
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