pub struct ErrorResponseBase {
pub status: f64,
pub error: ErrorCause,
}Fields§
§status: f64§error: ErrorCauseImplementations§
Source§impl ErrorResponseBase
impl ErrorResponseBase
pub fn new(status: f64, error: ErrorCause) -> ErrorResponseBase
Trait Implementations§
Source§impl Clone for ErrorResponseBase
impl Clone for ErrorResponseBase
Source§fn clone(&self) -> ErrorResponseBase
fn clone(&self) -> ErrorResponseBase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorResponseBase
impl Debug for ErrorResponseBase
Source§impl Default for ErrorResponseBase
impl Default for ErrorResponseBase
Source§fn default() -> ErrorResponseBase
fn default() -> ErrorResponseBase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorResponseBase
impl<'de> Deserialize<'de> for ErrorResponseBase
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 ErrorResponseBase
impl PartialEq for ErrorResponseBase
Source§fn eq(&self, other: &ErrorResponseBase) -> bool
fn eq(&self, other: &ErrorResponseBase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ErrorResponseBase
impl Serialize for ErrorResponseBase
impl StructuralPartialEq for ErrorResponseBase
Auto Trait Implementations§
impl Freeze for ErrorResponseBase
impl RefUnwindSafe for ErrorResponseBase
impl Send for ErrorResponseBase
impl Sync for ErrorResponseBase
impl Unpin for ErrorResponseBase
impl UnsafeUnpin for ErrorResponseBase
impl UnwindSafe for ErrorResponseBase
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