Struct cynic_introspection::query::Directive
source · pub struct Directive {
pub name: String,
pub description: Option<String>,
pub args: Vec<InputValue>,
pub locations: Vec<DirectiveLocation>,
}Expand description
A directive either used in the schema or available to queries
Fields§
§name: StringThe name of the directive
description: Option<String>A description of the directive
args: Vec<InputValue>Any arguments that can be provided to the directive
locations: Vec<DirectiveLocation>The locations where the directive may be used
Trait Implementations§
source§impl<'de> Deserialize<'de> for Directive
impl<'de> Deserialize<'de> for Directive
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 QueryFragment for Directive
impl QueryFragment for Directive
§type SchemaType = __Directive
type SchemaType = __Directive
The type in a schema that this
QueryFragment represents§type VariablesFields = ()
type VariablesFields = ()
The variables that are required to execute this
QueryFragmentsource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
Adds this fragment to the query being built by
builderAuto Trait Implementations§
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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