Expand description
§juniper_codegen_puff
crate
This is a pre-release of juniper_codegen
current master with no changes for use with puff-rs
.
Attribute Macros§
- graphql_
interface #[graphql_interface]
macro for generating a GraphQL interface implementation for traits and its implementers.- graphql_
object #[graphql_object]
macro for generating a GraphQL object implementation for structs with computable field resolvers (declared via a regular Rustimpl
block).- graphql_
scalar #[graphql_scalar]
macro.is interchangeable with#[derive(
GraphQLScalar
)]
macro, and is used for deriving a GraphQL scalar implementation.- graphql_
subscription #[graphql_subscription]
macro for generating a GraphQL subscription implementation for structs with computable field resolvers (declared via a regular Rustimpl
block).- graphql_
union #[graphql_union]
macro for deriving a GraphQL union implementation for traits.
Derive Macros§
- GraphQL
Enum #[derive(GraphQLEnum)]
macro for deriving a GraphQL enum implementation for Rust enums.- GraphQL
Input Object #[derive(GraphQLInputObject)]
macro for deriving a GraphQL input object implementation for a Rust struct. Each non-ignored field type must itself be GraphQL input object or a GraphQL scalar.- GraphQL
Interface #[derive(GraphQLInterface)]
macro for generating a [GraphQL interface][1] implementation for traits and its implementers.- GraphQL
Object #[derive(GraphQLObject)]
macro for deriving a GraphQL object implementation for structs.- GraphQL
Scalar #[derive(GraphQLScalar)]
macro for deriving a GraphQL scalar implementation.- GraphQL
Union #[derive(GraphQLUnion)]
macro for deriving a GraphQL union implementation for enums and structs.- Scalar
Value #[derive(ScalarValue)]
macro for deriving aScalarValue
implementation.