infrahub 0.2.1

small graphql client for infrahub
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! generated operation helper
//!
//! operation trait implemented by generated types.

use serde::de::DeserializeOwned;

/// graphql operation contract for generated types
pub trait Operation {
    /// graphql query or mutation string
    const QUERY: &'static str;
    /// response payload type
    type Response: DeserializeOwned;
}