Struct atrium_xrpc::error::ErrorResponseBody
source · pub struct ErrorResponseBody {
pub error: Option<String>,
pub message: Option<String>,
}
Expand description
A standard error response schema
export const errorResponseBody = z.object({
error: z.string().optional(),
message: z.string().optional(),
})
export type ErrorResponseBody = z.infer<typeof errorResponseBody>
Fields§
§error: Option<String>
§message: Option<String>
Trait Implementations§
source§impl Clone for ErrorResponseBody
impl Clone for ErrorResponseBody
source§fn clone(&self) -> ErrorResponseBody
fn clone(&self) -> ErrorResponseBody
Returns a copy 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 ErrorResponseBody
impl Debug for ErrorResponseBody
source§impl<'de> Deserialize<'de> for ErrorResponseBody
impl<'de> Deserialize<'de> for ErrorResponseBody
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 PartialEq for ErrorResponseBody
impl PartialEq for ErrorResponseBody
source§fn eq(&self, other: &ErrorResponseBody) -> bool
fn eq(&self, other: &ErrorResponseBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrorResponseBody
impl Serialize for ErrorResponseBody
impl Eq for ErrorResponseBody
impl StructuralPartialEq for ErrorResponseBody
Auto Trait Implementations§
impl RefUnwindSafe for ErrorResponseBody
impl Send for ErrorResponseBody
impl Sync for ErrorResponseBody
impl Unpin for ErrorResponseBody
impl UnwindSafe for ErrorResponseBody
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