pub enum DirectiveLocation {
Show 19 variants
Query,
Mutation,
Subscription,
Field,
FragmentDefinition,
FragmentSpread,
InlineFragment,
VariableDefinition,
Schema,
Scalar,
Object,
FieldDefinition,
ArgumentDefinition,
Interface,
Union,
Enum,
EnumValue,
InputObject,
InputFieldDefinition,
}Expand description
A location where a directive can be used
Variants§
Query
Mutation
Subscription
Field
FragmentDefinition
FragmentSpread
InlineFragment
VariableDefinition
Schema
Scalar
Object
FieldDefinition
ArgumentDefinition
Interface
Union
Enum
EnumValue
InputObject
InputFieldDefinition
Trait Implementations§
Source§impl Clone for DirectiveLocation
impl Clone for DirectiveLocation
Source§fn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
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 DirectiveLocation
impl Debug for DirectiveLocation
Source§impl<'de> Deserialize<'de> for DirectiveLocation
impl<'de> Deserialize<'de> for DirectiveLocation
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 Enum for DirectiveLocation
impl Enum for DirectiveLocation
Source§type SchemaType = __DirectiveLocation
type SchemaType = __DirectiveLocation
The enum in the schema that this type represents.
Source§impl PartialEq for DirectiveLocation
impl PartialEq for DirectiveLocation
Source§impl Serialize for DirectiveLocation
impl Serialize for DirectiveLocation
impl CoercesTo<Option<Option<__DirectiveLocation>>> for DirectiveLocation
impl CoercesTo<Option<Vec<Option<__DirectiveLocation>>>> for DirectiveLocation
impl CoercesTo<Option<Vec<__DirectiveLocation>>> for DirectiveLocation
impl CoercesTo<Option<__DirectiveLocation>> for DirectiveLocation
impl CoercesTo<Vec<Vec<__DirectiveLocation>>> for DirectiveLocation
impl CoercesTo<Vec<__DirectiveLocation>> for DirectiveLocation
impl Copy for DirectiveLocation
impl Eq for DirectiveLocation
impl StructuralPartialEq for DirectiveLocation
Auto Trait Implementations§
impl Freeze for DirectiveLocation
impl RefUnwindSafe for DirectiveLocation
impl Send for DirectiveLocation
impl Sync for DirectiveLocation
impl Unpin for DirectiveLocation
impl UnwindSafe for DirectiveLocation
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