pub enum GraphqlResponse<T> {
Err(GraphqlErrorResponse<T>),
Ok(GraphqlOkResponse<T>),
}Expand description
GraphQL Response.
GraphQL can return a response with data or errors, or both in the case of a partial success.
Variants§
Err(GraphqlErrorResponse<T>)
A response containing errors.
Ok(GraphqlOkResponse<T>)
A response representing a complete success with no errors.
Trait Implementations§
Source§impl<T: Debug> Debug for GraphqlResponse<T>
impl<T: Debug> Debug for GraphqlResponse<T>
Source§impl<'de, T> Deserialize<'de> for GraphqlResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for GraphqlResponse<T>where
T: 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
Auto Trait Implementations§
impl<T> Freeze for GraphqlResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for GraphqlResponse<T>where
T: RefUnwindSafe,
impl<T> Send for GraphqlResponse<T>where
T: Send,
impl<T> Sync for GraphqlResponse<T>where
T: Sync,
impl<T> Unpin for GraphqlResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for GraphqlResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GraphqlResponse<T>where
T: 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