[−][src]Enum async_graphql_parser::types::DocumentOperations
pub enum DocumentOperations { Single(Positioned<OperationDefinition>), Multiple(HashMap<Name, Positioned<OperationDefinition>>), }
The operations of a GraphQL document.
There is either one anonymous operation or many named operations.
Variants
Single(Positioned<OperationDefinition>)
The document contains a single anonymous operation.
Multiple(HashMap<Name, Positioned<OperationDefinition>>)
The document contains many named operations.
Implementations
impl DocumentOperations
[src][−]
pub fn iter(&self) -> OperationsIter<'_>ⓘNotable traits for OperationsIter<'a>
impl<'a> Iterator for OperationsIter<'a> type Item = (Option<&'a Name>, &'a Positioned<OperationDefinition>);
[src][−]
Notable traits for OperationsIter<'a>
impl<'a> Iterator for OperationsIter<'a> type Item = (Option<&'a Name>, &'a Positioned<OperationDefinition>);
Iterate over the operations of the document.
Trait Implementations
impl Clone for DocumentOperations
[src][+]
impl Debug for DocumentOperations
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for DocumentOperations
impl Send for DocumentOperations
impl Sync for DocumentOperations
impl Unpin for DocumentOperations
impl UnwindSafe for DocumentOperations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,