Struct cynic_introspection::Directive
source · #[non_exhaustive]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 (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
locations: Vec<DirectiveLocation>The locations where the directive may be used
Trait Implementations§
source§impl PartialEq for Directive
impl PartialEq for Directive
impl Eq for Directive
impl StructuralEq for Directive
impl StructuralPartialEq for Directive
Auto 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