[−][src]Struct async_graphql::SchemaBuilder
Schema builder
Implementations
impl<Query: ObjectType, Mutation: ObjectType, Subscription: SubscriptionType> SchemaBuilder<Query, Mutation, Subscription>
[src][−]
pub fn register_type<T: Type>(self) -> Self
[src][−]
You can use this function to register types that are not directly referenced.
pub fn disable_introspection(self) -> Self
[src][−]
Disable introspection query
pub fn limit_complexity(self, complexity: usize) -> Self
[src][−]
Set limit complexity, Default no limit.
pub fn limit_depth(self, depth: usize) -> Self
[src][−]
Set limit complexity, Default no limit.
pub fn extension<F: Fn() -> E + Send + Sync + 'static, E: Extension>(
self,
extension_factory: F
) -> Self
[src][−]
self,
extension_factory: F
) -> Self
Add an extension
pub fn data<D: Any + Send + Sync>(self, data: D) -> Self
[src][−]
Add a global data that can be accessed in the Schema
, you access it with Context::data
.
pub fn validation_mode(self, validation_mode: ValidationMode) -> Self
[src][−]
Set the validation mode, default is ValidationMode::Strict
.
pub fn enable_federation(self) -> Self
[src][−]
Enable federation, which is automatically enabled if the Query has least one entity definition.
pub fn finish(self) -> Schema<Query, Mutation, Subscription>
[src][−]
Build schema.
Auto Trait Implementations
impl<Query, Mutation, Subscription> !RefUnwindSafe for SchemaBuilder<Query, Mutation, Subscription>
impl<Query, Mutation, Subscription> Send for SchemaBuilder<Query, Mutation, Subscription> where
Mutation: Send,
Query: Send,
Subscription: Send,
Mutation: Send,
Query: Send,
Subscription: Send,
impl<Query, Mutation, Subscription> Sync for SchemaBuilder<Query, Mutation, Subscription> where
Mutation: Sync,
Query: Sync,
Subscription: Sync,
Mutation: Sync,
Query: Sync,
Subscription: Sync,
impl<Query, Mutation, Subscription> Unpin for SchemaBuilder<Query, Mutation, Subscription> where
Mutation: Unpin,
Query: Unpin,
Subscription: Unpin,
Mutation: Unpin,
Query: Unpin,
Subscription: Unpin,
impl<Query, Mutation, Subscription> !UnwindSafe for SchemaBuilder<Query, Mutation, Subscription>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,