pub enum Response<T: ApiCall> {
Response(T::Response),
Error(String),
}Variants§
Trait Implementations§
Source§impl<'de, T: ApiCall> Deserialize<'de> for Response<T>where
T::Response: Deserialize<'de>,
impl<'de, T: ApiCall> Deserialize<'de> for Response<T>where
T::Response: Deserialize<'de>,
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<T: Ord + ApiCall> Ord for Response<T>
impl<T: Ord + ApiCall> Ord for Response<T>
1.21.0 · Source§fn 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
Source§impl<T: PartialOrd + ApiCall> PartialOrd for Response<T>where
T::Response: PartialOrd,
impl<T: PartialOrd + ApiCall> PartialOrd for Response<T>where
T::Response: PartialOrd,
impl<T: Eq + ApiCall> Eq for Response<T>
impl<T: ApiCall> StructuralPartialEq for Response<T>
Auto Trait Implementations§
impl<T> Freeze for Response<T>
impl<T> RefUnwindSafe for Response<T>
impl<T> Send for Response<T>
impl<T> Sync for Response<T>
impl<T> Unpin for Response<T>
impl<T> UnwindSafe for Response<T>
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