#[non_exhaustive]pub struct Directive {
pub name: String,
pub description: Option<String>,
pub args: Vec<InputValue>,
pub is_repeatable: bool,
pub locations: Vec<DirectiveLocation>,
}Expand description
A directive either used in the schema or available to queries
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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
is_repeatable: boolWhether the directive is repeatable or not
locations: Vec<DirectiveLocation>The locations where the directive may be used
Trait Implementations§
impl Eq for Directive
impl StructuralPartialEq for Directive
Auto 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