pub struct ResponseWithErrorCode {
pub error: ErrorCode,
}
Expand description
try to decode to this when status code is not 200. so the error field is expect to exist.
Fields§
§error: ErrorCode
Trait Implementations§
Source§impl Debug for ResponseWithErrorCode
impl Debug for ResponseWithErrorCode
Source§impl<'de> Deserialize<'de> for ResponseWithErrorCode
impl<'de> Deserialize<'de> for ResponseWithErrorCode
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 ResponseWithErrorCode
impl RefUnwindSafe for ResponseWithErrorCode
impl Send for ResponseWithErrorCode
impl Sync for ResponseWithErrorCode
impl Unpin for ResponseWithErrorCode
impl UnwindSafe for ResponseWithErrorCode
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