Function nash_protocol::protocol::try_response_from_json [−][src]
pub fn try_response_from_json<A, B>(
response: Value
) -> Result<ResponseOrError<A>> where
A: TryFrom<B>,
<A as TryFrom<B>>::Error: Display,
B: DeserializeOwned,
Expand description
Helper to convert data corresponding to raw GraphQL types (B) into nicer library managed types A when failure is possible