pub enum Response<F> {
Ok(OkResponse<F>),
Err(ErrorResponse),
}Variants§
Ok(OkResponse<F>)
Err(ErrorResponse)
Trait Implementations§
Source§impl<'de, F> Deserialize<'de> for Response<F>where
F: Deserialize<'de>,
impl<'de, F> Deserialize<'de> for Response<F>where
F: 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<R> From<Response<R>> for Result<OkResponse<R>, ErrorResponse>
impl<R> From<Response<R>> for Result<OkResponse<R>, ErrorResponse>
Source§fn from(value: Response<R>) -> Result<OkResponse<R>, ErrorResponse>
fn from(value: Response<R>) -> Result<OkResponse<R>, ErrorResponse>
Converts to this type from the input type.
Source§impl<R> From<Result<OkResponse<R>, ErrorResponse>> for Response<R>
impl<R> From<Result<OkResponse<R>, ErrorResponse>> for Response<R>
Source§fn from(value: Result<OkResponse<R>, ErrorResponse>) -> Response<R>
fn from(value: Result<OkResponse<R>, ErrorResponse>) -> Response<R>
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> !Freeze for Response<F>
impl<F> RefUnwindSafe for Response<F>where
F: RefUnwindSafe,
impl<F> Send for Response<F>where
F: Send,
impl<F> Sync for Response<F>where
F: Sync,
impl<F> Unpin for Response<F>where
F: Unpin,
impl<F> UnwindSafe for Response<F>where
F: 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