pub struct TwirpErrorResponse {
pub code: TwirpErrorCode,
pub msg: String,
pub meta: HashMap<String, String>,
}
Fields§
§code: TwirpErrorCode
§msg: String
§meta: HashMap<String, String>
Implementations§
Trait Implementations§
Source§impl Debug for TwirpErrorResponse
impl Debug for TwirpErrorResponse
Source§impl<'de> Deserialize<'de> for TwirpErrorResponse
impl<'de> Deserialize<'de> for TwirpErrorResponse
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 IntoResponse for TwirpErrorResponse
impl IntoResponse for TwirpErrorResponse
Source§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Source§impl PartialEq for TwirpErrorResponse
impl PartialEq for TwirpErrorResponse
Source§impl Serialize for TwirpErrorResponse
impl Serialize for TwirpErrorResponse
impl Eq for TwirpErrorResponse
impl StructuralPartialEq for TwirpErrorResponse
Auto Trait Implementations§
impl Freeze for TwirpErrorResponse
impl RefUnwindSafe for TwirpErrorResponse
impl Send for TwirpErrorResponse
impl Sync for TwirpErrorResponse
impl Unpin for TwirpErrorResponse
impl UnwindSafe for TwirpErrorResponse
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