#graphql #derive #cloud #policy #shisho #query #gql

macro test-shisho-gql-derive

This is the utility for Shisho Cloud Policy SDK

12 releases

0.11.10 Nov 8, 2022
0.11.9 Nov 7, 2022
0.1.1 Nov 4, 2022

#932 in HTTP server

Download history 1/week @ 2024-02-22 1/week @ 2024-02-29 5/week @ 2024-03-14 26/week @ 2024-03-28 67/week @ 2024-04-04 12/week @ 2024-04-11

105 downloads per month

Apache-2.0 OR MIT

11KB
170 lines

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

Dependencies

~2–3MB
~64K SLoC