pub struct ErrorResponsePayloadWithErrMessage {
pub status: f64,
pub err: String,
}
Expand description
ErrorResponsePayloadWithErrMessage : A response indicating an error occurred.
Fields§
§status: f64
Status code
err: String
A string describing the error
Implementations§
Source§impl ErrorResponsePayloadWithErrMessage
impl ErrorResponsePayloadWithErrMessage
Sourcepub fn new(status: f64, err: String) -> ErrorResponsePayloadWithErrMessage
pub fn new(status: f64, err: String) -> ErrorResponsePayloadWithErrMessage
A response indicating an error occurred.
Trait Implementations§
Source§impl Clone for ErrorResponsePayloadWithErrMessage
impl Clone for ErrorResponsePayloadWithErrMessage
Source§fn clone(&self) -> ErrorResponsePayloadWithErrMessage
fn clone(&self) -> ErrorResponsePayloadWithErrMessage
Returns a duplicate 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 Default for ErrorResponsePayloadWithErrMessage
impl Default for ErrorResponsePayloadWithErrMessage
Source§fn default() -> ErrorResponsePayloadWithErrMessage
fn default() -> ErrorResponsePayloadWithErrMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorResponsePayloadWithErrMessage
impl<'de> Deserialize<'de> for ErrorResponsePayloadWithErrMessage
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 ErrorResponsePayloadWithErrMessage
impl PartialEq for ErrorResponsePayloadWithErrMessage
Source§fn eq(&self, other: &ErrorResponsePayloadWithErrMessage) -> bool
fn eq(&self, other: &ErrorResponsePayloadWithErrMessage) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ErrorResponsePayloadWithErrMessage
Auto Trait Implementations§
impl Freeze for ErrorResponsePayloadWithErrMessage
impl RefUnwindSafe for ErrorResponsePayloadWithErrMessage
impl Send for ErrorResponsePayloadWithErrMessage
impl Sync for ErrorResponsePayloadWithErrMessage
impl Unpin for ErrorResponsePayloadWithErrMessage
impl UnwindSafe for ErrorResponsePayloadWithErrMessage
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