pub struct GraphQLDirective {
pub name: String,
pub locations: Vec<String>,
pub arguments: Vec<GraphQLArgument>,
pub description: Option<String>,
}Expand description
Represents a GraphQL directive
Fields§
§name: StringDirective name (without @)
locations: Vec<String>Locations where directive can be used
arguments: Vec<GraphQLArgument>Directive arguments
description: Option<String>Directive description
Trait Implementations§
Source§impl Clone for GraphQLDirective
impl Clone for GraphQLDirective
Source§fn clone(&self) -> GraphQLDirective
fn clone(&self) -> GraphQLDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphQLDirective
impl Debug for GraphQLDirective
Source§impl<'de> Deserialize<'de> for GraphQLDirective
impl<'de> Deserialize<'de> for GraphQLDirective
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
Auto Trait Implementations§
impl Freeze for GraphQLDirective
impl RefUnwindSafe for GraphQLDirective
impl Send for GraphQLDirective
impl Sync for GraphQLDirective
impl Unpin for GraphQLDirective
impl UnsafeUnpin for GraphQLDirective
impl UnwindSafe for GraphQLDirective
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