pub struct Client { /* private fields */ }
Expand description
GraphQL query client over HTTP.
Implementations§
source§impl Client
impl Client
sourcepub async fn healthcheck(&self) -> Result<(), ()>
pub async fn healthcheck(&self) -> Result<(), ()>
Send a health query
sourcepub async fn query<T: GraphQLQuery>(
&self,
request_body: &QueryBody<T::Variables>,
) -> QueryResult<T>
pub async fn query<T: GraphQLQuery>( &self, request_body: &QueryBody<T::Variables>, ) -> QueryResult<T>
Issue a GraphQL query using Reqwest, serializing the response to the associated
GraphQL type for the given request_body
.
Trait Implementations§
source§impl ComponentsQueryExt for Client
impl ComponentsQueryExt for Client
async fn components_query(&self, first: i64) -> QueryResult<ComponentsQuery>
source§impl HealthQueryExt for Client
impl HealthQueryExt for Client
source§async fn health_query(&self) -> QueryResult<HealthQuery>
async fn health_query(&self) -> QueryResult<HealthQuery>
Executes a health query.
source§impl MetaQueryExt for Client
impl MetaQueryExt for Client
source§async fn meta_version_string(&self) -> QueryResult<MetaVersionStringQuery>
async fn meta_version_string(&self) -> QueryResult<MetaVersionStringQuery>
Executes a meta version string query.
source§impl TestQueryExt for Client
impl TestQueryExt for Client
async fn component_links_query( &self, after: Option<String>, before: Option<String>, first: Option<i64>, last: Option<i64>, ) -> QueryResult<ComponentLinksQuery>
async fn file_source_metrics_query( &self, after: Option<String>, before: Option<String>, first: Option<i64>, last: Option<i64>, ) -> QueryResult<FileSourceMetricsQuery>
async fn component_by_component_key_query( &self, component_id: &str, ) -> QueryResult<ComponentByComponentKeyQuery>
async fn components_connection_query( &self, after: Option<String>, before: Option<String>, first: Option<i64>, last: Option<i64>, ) -> QueryResult<ComponentsConnectionQuery>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more