pub struct ErrorObject<E = ()> {
pub status: StatusCode,
pub title: Option<String>,
pub error: E,
}
Fields§
§status: StatusCode
§title: Option<String>
§error: E
Trait Implementations§
Source§impl<E: Debug> Debug for ErrorObject<E>
impl<E: Debug> Debug for ErrorObject<E>
Source§impl<'de, E> Deserialize<'de> for ErrorObject<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for ErrorObject<E>where
E: Deserialize<'de>,
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
Source§impl<E> From<ErrorObject<E>> for ErrorResponsewhere
E: Serialize,
impl<E> From<ErrorObject<E>> for ErrorResponsewhere
E: Serialize,
Source§fn from(value: ErrorObject<E>) -> Self
fn from(value: ErrorObject<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for ErrorObject<E>where
E: Freeze,
impl<E> RefUnwindSafe for ErrorObject<E>where
E: RefUnwindSafe,
impl<E> Send for ErrorObject<E>where
E: Send,
impl<E> Sync for ErrorObject<E>where
E: Sync,
impl<E> Unpin for ErrorObject<E>where
E: Unpin,
impl<E> UnwindSafe for ErrorObject<E>where
E: UnwindSafe,
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