pub struct Directive<'a> {
pub name: &'a str,
pub arguments: Arguments<'a>,
}
Expand description
AST Node for GraphQL Directives, which provide a way to describe alternate behavior in GraphQL.
Typical directives that occur in queries are for example @skip
, @include, and
@defer`.
Reference
Fields§
§name: &'a str
§arguments: Arguments<'a>
Trait Implementations§
impl<'a> StructuralPartialEq for Directive<'a>
Auto Trait Implementations§
impl<'a> Freeze for Directive<'a>
impl<'a> !RefUnwindSafe for Directive<'a>
impl<'a> !Send for Directive<'a>
impl<'a> !Sync for Directive<'a>
impl<'a> Unpin for Directive<'a>
impl<'a> !UnwindSafe for Directive<'a>
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