pub struct OperationDefinition {
pub operation_type: OperationType,
pub name: Option<String>,
pub span: Range<usize>,
}Expand description
GraphQL operation definition.
Fields§
§operation_type: OperationTypeThe type of operation.
name: Option<String>Optional name of the operation.
span: Range<usize>Source span.
Implementations§
Trait Implementations§
Source§impl Clone for OperationDefinition
impl Clone for OperationDefinition
Source§fn clone(&self) -> OperationDefinition
fn clone(&self) -> OperationDefinition
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 OperationDefinition
impl Debug for OperationDefinition
Source§impl<'de> Deserialize<'de> for OperationDefinition
impl<'de> Deserialize<'de> for OperationDefinition
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
Source§impl PartialEq for OperationDefinition
impl PartialEq for OperationDefinition
Source§impl Serialize for OperationDefinition
impl Serialize for OperationDefinition
impl StructuralPartialEq for OperationDefinition
Auto Trait Implementations§
impl Freeze for OperationDefinition
impl RefUnwindSafe for OperationDefinition
impl Send for OperationDefinition
impl Sync for OperationDefinition
impl Unpin for OperationDefinition
impl UnsafeUnpin for OperationDefinition
impl UnwindSafe for OperationDefinition
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