Module types

Source
Expand description

Type definitions of the input and output data structures of the SDK.

Structs§

AuthorizationDecisions
Authorization decisions for each query elements to be applied by the GraphQL engine.
Cache
A cache implementation for storing data between requests.
Configuration
Configuration data for the extension, from the gateway toml config.
DenySomeBuilder
To be used when denying some of the elements. By default everything is granted.
EnumDirectiveSite
A directive site for enums
Error
Graphql Error with a message and extensions
ErrorId
Error identifier to allow re-using the same error for multiple elements. In the gateway response, the error will be repeated if necessary during serialization.
ErrorResponse
A response containing a status code and multiple errors.
FieldDefinitionDirective
A field definition directive with its site information
FieldDefinitionDirectiveSite
A directive site for field definitions
FieldInput
Response data, if any, for an item to resolve.
FieldInputs
List of resolver inputs, each containing the relevant response data associated with the resolved item.
FieldInputsIterator
Iterator over the resolver inputs.
FieldOutput
Output for a resolver
FieldOutputBuilder
Accumulator for setting the output individually for each FieldInput.
InterfaceDirectiveSite
A directive site for interfaces
ObjectDirectiveSite
A directive site for object types
QueryElement
An element of the query on which a directive was applied.
QueryElementId
An identifier for a query element. Only relevant for response authorization as data provided in authorize_query won’t be re-sent in authorize_response. So this ID allows finding the relevant data in the custom state.
QueryElements
A list of elements present in the query on which one of the extension’s directive was applied on their definition.
QueryElementsIterator
Iterator over the elements of the query on which a directive was applied.
ResponseElement
An element of the query on which a directive was applied.
ResponseElements
A list of elements present in the query on which one of the extension’s directive was applied on their definition.
ResponseElementsIterator
Iterator over the elements of the query on which a directive was applied.
ResponseItem
Represents a single item, object or field, that is subject to an authorization rule with the data requested by the directive.
ScalarDirectiveSite
A directive site for scalars
SchemaDirective
The directive and its arguments which define the extension in the GraphQL SDK.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
SubscriptionOutput
List of items to be returned by a subscriptions. If there are no items to return, use the default value.
SubscriptionOutputBuilder
Accumulator for setting the output individually for each ResolverInput.
Token
Token produced by an authentication extension.
UnionDirectiveSite
A directive site for union types

Enums§

DirectiveSite
The site where a directive is applied in the GraphQL schema.

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
QueryElementOrResponseItem
Either a QueryElement or a ResponseItem.

Derive Macros§

Deserialize