Trait graphql_ws_client::graphql::GraphqlOperation
source · pub trait GraphqlOperation: Serialize {
type Response;
type Error: Error;
// Required method
fn decode(&self, data: Value) -> Result<Self::Response, Self::Error>;
}
Expand description
An abstraction over GraphQL operations.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<ResponseData, Variables> GraphqlOperation for StreamingOperation<ResponseData, Variables>where
ResponseData: DeserializeOwned,
Variables: Serialize,
Available on crate feature client-cynic
only.
impl<ResponseData, Variables> GraphqlOperation for StreamingOperation<ResponseData, Variables>where
ResponseData: DeserializeOwned,
Variables: Serialize,
Available on crate feature
client-cynic
only.