pub struct ApiError {
pub code: StatusCode,
pub message: ApiErrorType,
pub id: String,
pub route: String,
}
Expand description
API Error structure
Fields§
§code: StatusCode
§message: ApiErrorType
§id: String
§route: String
Implementations§
Source§impl ApiError
impl ApiError
pub fn new( code: StatusCode, message: ApiErrorType, id: String, route: String, ) -> Self
Trait Implementations§
impl Reject for ApiError
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnwindSafe for ApiError
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