12 个版本
0.11.10 | 2022 年 11 月 8 日 |
---|---|
0.11.9 | 2022 年 11 月 7 日 |
0.1.1 | 2022 年 11 月 4 日 |
在 HTTP 服务器 中排名 1134
每月下载次数 31
11KB
170 行
Shisho 策略 GraphQL 模式的 Derive 宏
这是 Shisho Cloud 工作流程的辅助 Crates,用于编写自定义策略。
这是用于 shisho-policy-sdk
的实用工具,它是一个 derive
宏,允许将 GraphQL 查询作为 Rust 结构体引用。
示例用法
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;
...
参考
graphql-客户端/graphql_query_derive
- 移除
schema_path
。
- 移除
依赖项
~3.5MB
~80K SLoC