pub enum ResponseWrapper<T> {
Success {
result: T,
},
Error {
description: String,
parameters: Option<ResponseParameters>,
},
}
Expand description
All API responses are from this type. Mostly used internal.
Variants
Success
Request was successful.
Error
Fields
description: String
Human-readable description of the result.
parameters: Option<ResponseParameters>
Contains information about why a request was unsuccessful.
Request was unsuccessful.
Trait Implementations
sourceimpl<T: Clone> Clone for ResponseWrapper<T>
impl<T: Clone> Clone for ResponseWrapper<T>
sourcefn clone(&self) -> ResponseWrapper<T>
fn clone(&self) -> ResponseWrapper<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for ResponseWrapper<T>
impl<T: Debug> Debug for ResponseWrapper<T>
sourceimpl<'de, T: Deserialize<'de>> Deserialize<'de> for ResponseWrapper<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for ResponseWrapper<T>
sourcefn deserialize<D>(deserializer: D) -> Result<ResponseWrapper<T>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ResponseWrapper<T>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: Hash> Hash for ResponseWrapper<T>
impl<T: Hash> Hash for ResponseWrapper<T>
sourceimpl<T: Ord> Ord for ResponseWrapper<T>
impl<T: Ord> Ord for ResponseWrapper<T>
sourcefn cmp(&self, other: &ResponseWrapper<T>) -> Ordering
fn cmp(&self, other: &ResponseWrapper<T>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq> PartialEq<ResponseWrapper<T>> for ResponseWrapper<T>
impl<T: PartialEq> PartialEq<ResponseWrapper<T>> for ResponseWrapper<T>
sourcefn eq(&self, other: &ResponseWrapper<T>) -> bool
fn eq(&self, other: &ResponseWrapper<T>) -> bool
sourceimpl<T: PartialOrd> PartialOrd<ResponseWrapper<T>> for ResponseWrapper<T>
impl<T: PartialOrd> PartialOrd<ResponseWrapper<T>> for ResponseWrapper<T>
sourcefn partial_cmp(&self, other: &ResponseWrapper<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ResponseWrapper<T>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq> Eq for ResponseWrapper<T>
impl<T> StructuralEq for ResponseWrapper<T>
impl<T> StructuralPartialEq for ResponseWrapper<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ResponseWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ResponseWrapper<T>where
T: Send,
impl<T> Sync for ResponseWrapper<T>where
T: Sync,
impl<T> Unpin for ResponseWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for ResponseWrapper<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more