pub struct Directive {
pub name: String,
pub description: Option<String>,
pub args: Vec<InputValue>,
pub locations: Vec<DirectiveLocation>,
pub is_repeatable: bool,
}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
is_repeatable: boolWhether the directive is repeatable or not
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
Source§type SchemaType = __Directive
type SchemaType = __Directive
The type in a schema that this
QueryFragment representsSource§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 Freeze for Directive
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