Skip to main content

GraphqlClient

Trait GraphqlClient 

Source
pub trait GraphqlClient {
    // Required method
    fn run_query(
        &self,
        query: &str,
        variables: &[(&str, &str)],
    ) -> Result<Value, CollectionError>;
}
Expand description

Runs one GitHub GraphQL query with string variables and returns its data object.

Required Methods§

Source

fn run_query( &self, query: &str, variables: &[(&str, &str)], ) -> Result<Value, CollectionError>

Run query with the given string variables and return the response’s data object. Errors carry the reason gh or GitHub gave.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§