pub struct GQLField {
pub name: String,
pub ty: GQLType,
pub nullable: bool,
pub description: Option<String>,
pub args: Vec<GQLFieldArg>,
}Expand description
A single field on a GraphQL object or interface.
Fields§
§name: String§ty: GQLType§nullable: boolWhether the field is nullable (i.e. NOT wrapped in NonNull).
description: Option<String>§args: Vec<GQLFieldArg>Arguments this field accepts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GQLField
impl RefUnwindSafe for GQLField
impl Send for GQLField
impl Sync for GQLField
impl Unpin for GQLField
impl UnsafeUnpin for GQLField
impl UnwindSafe for GQLField
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