pub enum DocumentKind {
Schema,
Executable,
Mixed,
}Expand description
The kind of GraphQL document being parsed.
Different document kinds allow different definition types:
- Schema documents: only type system definitions
- Executable documents: only operations and fragments
- Mixed documents: both type system and executable definitions
Variants§
Schema
Schema document: only type system definitions allowed
(schema, type, interface, directive, etc.).
Executable
Executable document: only operations and fragments allowed
(query, mutation, subscription, fragment).
Mixed
Mixed document: both type system and executable definitions allowed. This is useful for tools that process complete GraphQL codebases.
Trait Implementations§
Source§impl Clone for DocumentKind
impl Clone for DocumentKind
Source§fn clone(&self) -> DocumentKind
fn clone(&self) -> DocumentKind
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 DocumentKind
impl Debug for DocumentKind
Source§impl PartialEq for DocumentKind
impl PartialEq for DocumentKind
impl Copy for DocumentKind
impl Eq for DocumentKind
impl StructuralPartialEq for DocumentKind
Auto Trait Implementations§
impl Freeze for DocumentKind
impl RefUnwindSafe for DocumentKind
impl Send for DocumentKind
impl Sync for DocumentKind
impl Unpin for DocumentKind
impl UnwindSafe for DocumentKind
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