pub trait GraphqlSchema: Send + Sync {
// Required method
fn schema(&self) -> &Schema<QueryRoot, MutationRoot, SubscriptionRoot>;
}Expand description
Built async-graphql schema, ready to serve. Implementations hold a
constructed async_graphql::Schema<QueryRoot, MutationRoot, SubscriptionRoot> and return a reference to it.
Required Methods§
Sourcefn schema(&self) -> &Schema<QueryRoot, MutationRoot, SubscriptionRoot>
fn schema(&self) -> &Schema<QueryRoot, MutationRoot, SubscriptionRoot>
The built async_graphql::Schema.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".