pub struct DefaultErrorResponse {
pub code: String,
pub message: String,
}
Expand description
Describes the default error format.
Fields§
§code: String
§message: String
Trait Implementations§
Source§impl Clone for DefaultErrorResponse
impl Clone for DefaultErrorResponse
Source§fn clone(&self) -> DefaultErrorResponse
fn clone(&self) -> DefaultErrorResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefaultErrorResponse
impl Debug for DefaultErrorResponse
Source§impl Serialize for DefaultErrorResponse
impl Serialize for DefaultErrorResponse
impl BodyInner for DefaultErrorResponse
Auto Trait Implementations§
impl Freeze for DefaultErrorResponse
impl RefUnwindSafe for DefaultErrorResponse
impl Send for DefaultErrorResponse
impl Sync for DefaultErrorResponse
impl Unpin for DefaultErrorResponse
impl UnwindSafe for DefaultErrorResponse
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