Enum async_graphql_parser::types::DocumentOperations [−][src]
pub enum DocumentOperations {
Single(Positioned<OperationDefinition>),
Multiple(HashMap<Name, Positioned<OperationDefinition>>),
}
Expand description
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.
Tuple Fields of Single
Multiple(HashMap<Name, Positioned<OperationDefinition>>)
The document contains many named operations.
Tuple Fields of Multiple
Implementations
pub fn iter(&self) -> OperationsIter<'_>ⓘNotable traits for OperationsIter<'a>impl<'a> Iterator for OperationsIter<'a> type Item = (Option<&'a Name>, &'a Positioned<OperationDefinition>);
pub fn iter(&self) -> OperationsIter<'_>ⓘNotable traits for OperationsIter<'a>impl<'a> Iterator for OperationsIter<'a> type Item = (Option<&'a Name>, &'a Positioned<OperationDefinition>);
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
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
Mutably borrows from an owned value. Read more