Enum sn0int_common::ApiResponse
source · pub enum ApiResponse<T> {
Success(T),
Error(String),
}
Variants
Success(T)
Error(String)
Implementations
Trait Implementations
sourceimpl<T> Debug for StrictApiResponse<T>where
T: Debug,
impl<T> Debug for StrictApiResponse<T>where
T: Debug,
sourceimpl<'de, T> Deserialize<'de> for StrictApiResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for StrictApiResponse<T>where
T: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<StrictApiResponse<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StrictApiResponse<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> Serialize for StrictApiResponse<T>where
T: Serialize,
impl<T> Serialize for StrictApiResponse<T>where
T: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for StrictApiResponse<T>where
T: RefUnwindSafe,
impl<T> Send for StrictApiResponse<T>where
T: Send,
impl<T> Sync for StrictApiResponse<T>where
T: Sync,
impl<T> Unpin for StrictApiResponse<T>where
T: Unpin,
impl<T> UnwindSafe for StrictApiResponse<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