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.
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
FieldInputs
A container for field inputs.
FieldOutput
Output responses from the field resolver.
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.
QueryElements
A list of elements present in the query on which one of the extension’s directive was applied on their definition.
ScalarDirectiveSite
A directive site for scalars
SchemaDirective
The directive and its arguments which define the extension in the GraphQL SDK.
SparseDenyAuthorizationDecisions
To be used when denying some of the elements. By default everything is granted.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Token
A structure representing an authentication token claims.
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.

Derive Macros§

Deserialize