Struct cynic::GraphQlResponse
source · pub struct GraphQlResponse<T, ErrorExtensions = IgnoredAny> {
pub data: Option<T>,
pub errors: Option<Vec<GraphQlError<ErrorExtensions>>>,
}
Expand description
The response to a GraphQl operation
Fields§
§data: Option<T>
The operation data (if the operation was successful)
errors: Option<Vec<GraphQlError<ErrorExtensions>>>
Any errors that occurred as part of this operation
Trait Implementations§
source§impl<'de, T, ErrorExtensions> Deserialize<'de> for GraphQlResponse<T, ErrorExtensions>where
T: Deserialize<'de>,
ErrorExtensions: Deserialize<'de>,
impl<'de, T, ErrorExtensions> Deserialize<'de> for GraphQlResponse<T, ErrorExtensions>where T: Deserialize<'de>, ErrorExtensions: 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