test-shisho-gql-derive

Crates.iotest-shisho-gql-derive
lib.rstest-shisho-gql-derive
version0.11.10
sourcesrc
created_at2022-11-02 10:31:11.909243
updated_at2022-11-08 01:07:18.982527
descriptionThis is the utility for Shisho Cloud Policy SDK.
homepage
repository
max_upload_size
id703417
size10,973
yoshi (y-matsutomo)

documentation

https://docs.rs/test-shisho-gql-derive

README

The Derive Macro for Shisho Policy GraphQL Schema

This is a helper crate for Shisho Cloud workflows to write custom policies.

This is the utility for shisho-policy-sdk which is a derive macro to allow referring a graphql query as Rust structs.

Example usage

use shisho_gql_derive::*;

...

#[allow(dead_code)]
#[derive(ShishoGraphQLQuery)]
#[shisho_graphql(
    query_path = "src/policies/organization/org_owners/query.graphql",
    response_derives = "Debug, PartialEq"
)]
pub struct Input;

...

Reference

Commit count: 0

cargo fmt