pub enum ExpressResult<TResponse, TExpressErr> {
Ok(TResponse),
Err(TExpressErr),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'de, TResponse, TExpressErr> Deserialize<'de> for ExpressResult<TResponse, TExpressErr>where
TResponse: Deserialize<'de>,
TExpressErr: Deserialize<'de>,
impl<'de, TResponse, TExpressErr> Deserialize<'de> for ExpressResult<TResponse, TExpressErr>where
TResponse: Deserialize<'de>,
TExpressErr: 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<TResponse, TExpressErr> From<ExpressResult<TResponse, TExpressErr>> for BotXApiResult<TResponse, TExpressErr>
impl<TResponse, TExpressErr> From<ExpressResult<TResponse, TExpressErr>> for BotXApiResult<TResponse, TExpressErr>
Source§fn from(value: ExpressResult<TResponse, TExpressErr>) -> Self
fn from(value: ExpressResult<TResponse, TExpressErr>) -> Self
Converts to this type from the input type.
Source§impl<TResponse, TExpressErr> Serialize for ExpressResult<TResponse, TExpressErr>
impl<TResponse, TExpressErr> Serialize for ExpressResult<TResponse, TExpressErr>
Auto Trait Implementations§
impl<TResponse, TExpressErr> Freeze for ExpressResult<TResponse, TExpressErr>
impl<TResponse, TExpressErr> RefUnwindSafe for ExpressResult<TResponse, TExpressErr>where
TResponse: RefUnwindSafe,
TExpressErr: RefUnwindSafe,
impl<TResponse, TExpressErr> Send for ExpressResult<TResponse, TExpressErr>
impl<TResponse, TExpressErr> Sync for ExpressResult<TResponse, TExpressErr>
impl<TResponse, TExpressErr> Unpin for ExpressResult<TResponse, TExpressErr>
impl<TResponse, TExpressErr> UnwindSafe for ExpressResult<TResponse, TExpressErr>where
TResponse: UnwindSafe,
TExpressErr: UnwindSafe,
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