#[non_exhaustive]pub struct ServerError {
pub kind: ErrorKind,
pub detail: Option<String>,
}
Expand description
An error response from a server to a client.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: ErrorKind
The type of error that occurred to fail the request.
detail: Option<String>
A message describing more detail about the error that occurred.
Trait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
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 ServerError
impl Debug for ServerError
Source§impl From<ServerError> for Error
impl From<ServerError> for Error
Source§fn from(e: ServerError) -> Error
fn from(e: ServerError) -> Error
Converts to this type from the input type.
Source§impl Hash for ServerError
impl Hash for ServerError
Source§impl PartialEq for ServerError
impl PartialEq for ServerError
impl Eq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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