RawClient

Trait RawClient 

Source
pub trait RawClient: Send {
    type Error;

    // Required method
    fn run_graphql_raw<Query, Vars>(
        &self,
        operation: Operation<Query, Vars>,
    ) -> impl Future<Output = Result<Json, Self::Error>> + Send
       where Vars: Serialize + Send;
}
Available on crate feature raw only.
Expand description

Client that takes a Cynic operation and return the GraphQL response as JSON.

Required Associated Types§

Required Methods§

Source

fn run_graphql_raw<Query, Vars>( &self, operation: Operation<Query, Vars>, ) -> impl Future<Output = Result<Json, Self::Error>> + Send
where Vars: Serialize + Send,

Run the operation and return the raw JSON GraphQL response.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RawClient for ReqwestClient

Available on crate feature reqwest only.