pub struct ComplexityConfig {
pub max_depth: usize,
pub max_fields: usize,
pub max_score: usize,
}Expand description
Query complexity configuration
Fields§
§max_depth: usizeMaximum query depth (nesting level) - default: 15
max_fields: usizeMaximum field count in a single query - default: 100
max_score: usizeMaximum complexity score (depth * field_count) - default: 500
Trait Implementations§
Source§impl Clone for ComplexityConfig
impl Clone for ComplexityConfig
Source§fn clone(&self) -> ComplexityConfig
fn clone(&self) -> ComplexityConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComplexityConfig
impl Debug for ComplexityConfig
Auto Trait Implementations§
impl Freeze for ComplexityConfig
impl RefUnwindSafe for ComplexityConfig
impl Send for ComplexityConfig
impl Sync for ComplexityConfig
impl Unpin for ComplexityConfig
impl UnsafeUnpin for ComplexityConfig
impl UnwindSafe for ComplexityConfig
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