pub struct GQLDirective {
pub name: String,
pub locations: Vec<GQLDirectiveLocation>,
pub args: Vec<GQLDirectiveArg>,
pub is_repeatable: bool,
pub description: Option<String>,
}Fields§
§name: String§locations: Vec<GQLDirectiveLocation>§args: Vec<GQLDirectiveArg>§is_repeatable: bool§description: Option<String>Implementations§
Source§impl GQLDirective
impl GQLDirective
pub fn new(name: impl Into<String>) -> Self
pub fn with_location(self, loc: GQLDirectiveLocation) -> Self
pub fn with_arg(self, arg: GQLDirectiveArg) -> Self
pub fn repeatable(self) -> Self
pub fn emit(&self) -> String
Trait Implementations§
Source§impl Clone for GQLDirective
impl Clone for GQLDirective
Source§fn clone(&self) -> GQLDirective
fn clone(&self) -> GQLDirective
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GQLDirective
impl RefUnwindSafe for GQLDirective
impl Send for GQLDirective
impl Sync for GQLDirective
impl Unpin for GQLDirective
impl UnsafeUnpin for GQLDirective
impl UnwindSafe for GQLDirective
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