pub struct GraphQLConfigBuilder { /* private fields */ }Expand description
Configuration builder for GraphQL gateway
Implementations§
Source§impl GraphQLConfigBuilder
impl GraphQLConfigBuilder
Sourcepub fn playground(self, enabled: bool) -> Self
pub fn playground(self, enabled: bool) -> Self
Enable/disable playground
Sourcepub fn introspection(self, enabled: bool) -> Self
pub fn introspection(self, enabled: bool) -> Self
Enable/disable introspection
Sourcepub fn auto_generate(self, enabled: bool) -> Self
pub fn auto_generate(self, enabled: bool) -> Self
Set auto-generation of schema
Sourcepub fn refresh_interval(self, interval: Duration) -> Self
pub fn refresh_interval(self, interval: Duration) -> Self
Set schema refresh interval
Sourcepub fn max_complexity(self, complexity: u32) -> Self
pub fn max_complexity(self, complexity: u32) -> Self
Set maximum query complexity
Sourcepub fn max_aliases(self, aliases: u32) -> Self
pub fn max_aliases(self, aliases: u32) -> Self
Set maximum aliases per query
Sourcepub fn batch_window(self, window: Duration) -> Self
pub fn batch_window(self, window: Duration) -> Self
Set batch window
Sourcepub fn max_batch_size(self, size: usize) -> Self
pub fn max_batch_size(self, size: usize) -> Self
Set maximum batch size
Sourcepub fn default_ttl(self, ttl: Duration) -> Self
pub fn default_ttl(self, ttl: Duration) -> Self
Set default cache TTL
Sourcepub fn table(self, table: TableConfig) -> Self
pub fn table(self, table: TableConfig) -> Self
Add a table configuration
Sourcepub fn relationship(self, relationship: RelationshipConfig) -> Self
pub fn relationship(self, relationship: RelationshipConfig) -> Self
Add a relationship configuration
Sourcepub fn build(self) -> GraphQLConfig
pub fn build(self) -> GraphQLConfig
Build the configuration
Trait Implementations§
Source§impl Debug for GraphQLConfigBuilder
impl Debug for GraphQLConfigBuilder
Source§impl Default for GraphQLConfigBuilder
impl Default for GraphQLConfigBuilder
Source§fn default() -> GraphQLConfigBuilder
fn default() -> GraphQLConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphQLConfigBuilder
impl RefUnwindSafe for GraphQLConfigBuilder
impl Send for GraphQLConfigBuilder
impl Sync for GraphQLConfigBuilder
impl Unpin for GraphQLConfigBuilder
impl UnsafeUnpin for GraphQLConfigBuilder
impl UnwindSafe for GraphQLConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more