Enum nash_protocol::protocol::ResponseOrError [−][src]
pub enum ResponseOrError<T> {
Response(DataResponse<T>),
Error(ErrorResponse),
}Expand description
Wrapper type to account for GraphQL errors
Variants
Response(DataResponse<T>)Tuple Fields of Response
0: DataResponse<T>Error(ErrorResponse)Tuple Fields of Error
Implementations
Get response from wrapper if it exists, will destroy wrapper
Get response or else error
Get error from wrapper if it exists
Transform the inner value of a valid response. Will not transform an error
Trait Implementations
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
Auto Trait Implementations
impl<T> RefUnwindSafe for ResponseOrError<T> where
T: RefUnwindSafe,
impl<T> Send for ResponseOrError<T> where
T: Send,
impl<T> Sync for ResponseOrError<T> where
T: Sync,
impl<T> Unpin for ResponseOrError<T> where
T: Unpin,
impl<T> UnwindSafe for ResponseOrError<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more