pub struct GQLQueryComplexity {
pub max_depth: u32,
pub max_breadth: u32,
pub max_complexity: u64,
pub per_field_cost: u32,
pub per_list_multiplier: u32,
}Fields§
§max_depth: u32§max_breadth: u32§max_complexity: u64§per_field_cost: u32§per_list_multiplier: u32Implementations§
Source§impl GQLQueryComplexity
impl GQLQueryComplexity
pub fn default_limits() -> Self
pub fn calculate_selection_complexity( &self, selections: &[GQLSelectionField], depth: u32, ) -> u64
Trait Implementations§
Source§impl Clone for GQLQueryComplexity
impl Clone for GQLQueryComplexity
Source§fn clone(&self) -> GQLQueryComplexity
fn clone(&self) -> GQLQueryComplexity
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 moreAuto Trait Implementations§
impl Freeze for GQLQueryComplexity
impl RefUnwindSafe for GQLQueryComplexity
impl Send for GQLQueryComplexity
impl Sync for GQLQueryComplexity
impl Unpin for GQLQueryComplexity
impl UnsafeUnpin for GQLQueryComplexity
impl UnwindSafe for GQLQueryComplexity
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