pub enum Response<T, E, U> {
Ok(T),
Error(E),
UnexpectedError(U),
}
Variants§
Trait Implementations§
Source§impl<'de, T, E, U> Deserialize<'de> for Response<T, E, U>
impl<'de, T, E, U> Deserialize<'de> for Response<T, E, U>
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, E, U> IntoResponse for Response<T, E, U>
impl<T, E, U> IntoResponse for Response<T, E, U>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T, E, U> Freeze for Response<T, E, U>
impl<T, E, U> RefUnwindSafe for Response<T, E, U>
impl<T, E, U> Send for Response<T, E, U>
impl<T, E, U> Sync for Response<T, E, U>
impl<T, E, U> Unpin for Response<T, E, U>
impl<T, E, U> UnwindSafe for Response<T, E, U>
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