pub struct ErrorReply {
pub code: String,
pub message: String,
pub detail: Option<Value>,
}Expand description
The :error of a wire reply, the one parsed form every client reads.
Fields§
§code: String§message: String§detail: Option<Value>Implementations§
Source§impl ErrorReply
impl ErrorReply
Sourcepub fn field_errors(&self) -> Vec<FieldError>
pub fn field_errors(&self) -> Vec<FieldError>
The rejected fields of a form-invalid reply; empty for any other
reply and for entries lacking a field or a message.
Trait Implementations§
Source§impl Clone for ErrorReply
impl Clone for ErrorReply
Source§impl Debug for ErrorReply
impl Debug for ErrorReply
Source§impl PartialEq for ErrorReply
impl PartialEq for ErrorReply
impl StructuralPartialEq for ErrorReply
Auto Trait Implementations§
impl Freeze for ErrorReply
impl RefUnwindSafe for ErrorReply
impl Send for ErrorReply
impl Sync for ErrorReply
impl Unpin for ErrorReply
impl UnsafeUnpin for ErrorReply
impl UnwindSafe for ErrorReply
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more