pub enum MixedDefinition {
Schema(Definition),
Executable(Definition),
}Expand description
A definition that can be either a schema definition or an executable definition.
This enum allows representing GraphQL documents that contain both type system definitions (types, directives, etc.) and executable definitions (operations, fragments) while preserving their relative ordering.
Variants§
Schema(Definition)
A schema definition (type, directive, schema, extension).
Executable(Definition)
An executable definition (operation or fragment).
Trait Implementations§
Source§impl Clone for MixedDefinition
impl Clone for MixedDefinition
Source§fn clone(&self) -> MixedDefinition
fn clone(&self) -> MixedDefinition
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 MixedDefinition
impl Debug for MixedDefinition
Source§impl PartialEq for MixedDefinition
impl PartialEq for MixedDefinition
impl StructuralPartialEq for MixedDefinition
Auto Trait Implementations§
impl Freeze for MixedDefinition
impl RefUnwindSafe for MixedDefinition
impl Send for MixedDefinition
impl Sync for MixedDefinition
impl Unpin for MixedDefinition
impl UnwindSafe for MixedDefinition
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