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.
Multiple(HashMap<Name, Positioned<OperationDefinition>>)
The document contains many named operations.
Implementations§
source§impl DocumentOperations
impl DocumentOperations
sourcepub fn iter(&self) -> OperationsIter<'_> ⓘ
pub fn iter(&self) -> OperationsIter<'_> ⓘ
Iterate over the operations of the document.
Trait Implementations§
source§impl Clone for DocumentOperations
impl Clone for DocumentOperations
source§fn clone(&self) -> DocumentOperations
fn clone(&self) -> DocumentOperations
Returns a copy 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 DocumentOperations
impl Debug for DocumentOperations
source§impl<'de> Deserialize<'de> for DocumentOperations
impl<'de> Deserialize<'de> for DocumentOperations
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more