pub struct GraphQLQueryInfo {
pub operation_type: GraphQLOperationType,
pub operation_name: Option<String>,
pub root_fields: Vec<String>,
pub types_accessed: HashSet<String>,
pub fields_accessed: HashSet<String>,
pub has_variables: bool,
pub variable_names: Vec<String>,
pub max_depth: usize,
pub has_fragments: bool,
pub fragment_names: Vec<String>,
pub has_introspection: bool,
}Expand description
Information extracted from a parsed GraphQL query.
Fields§
§operation_type: GraphQLOperationTypeThe operation type (query, mutation, subscription)
operation_name: Option<String>Name of the operation (if named)
root_fields: Vec<String>Root fields being queried
types_accessed: HashSet<String>All types accessed in the query
fields_accessed: HashSet<String>All fields accessed in the query
has_variables: boolWhether the query has variables
variable_names: Vec<String>Variable names
max_depth: usizeMaximum depth of the query
has_fragments: boolWhether query has fragments
fragment_names: Vec<String>Fragment names used
has_introspection: boolWhether the query contains introspection fields (__schema, __type)
Trait Implementations§
Source§impl Clone for GraphQLQueryInfo
impl Clone for GraphQLQueryInfo
Source§fn clone(&self) -> GraphQLQueryInfo
fn clone(&self) -> GraphQLQueryInfo
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 GraphQLQueryInfo
impl Debug for GraphQLQueryInfo
Source§impl Default for GraphQLQueryInfo
impl Default for GraphQLQueryInfo
Source§fn default() -> GraphQLQueryInfo
fn default() -> GraphQLQueryInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphQLQueryInfo
impl RefUnwindSafe for GraphQLQueryInfo
impl Send for GraphQLQueryInfo
impl Sync for GraphQLQueryInfo
impl Unpin for GraphQLQueryInfo
impl UnsafeUnpin for GraphQLQueryInfo
impl UnwindSafe for GraphQLQueryInfo
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