Function nash_protocol::protocol::try_response_with_state_from_json [−][src]
pub async fn try_response_with_state_from_json<A, B>(
response: Value,
state: Arc<RwLock<State>>
) -> Result<ResponseOrError<A>> where
A: TryFromState<B>,
B: DeserializeOwned,
Expand description
Helper to convert data corresponding to raw GraphQL types (B) into nicer library managed types A when failure is possible