pub struct GraphQLField {
pub name: String,
pub type_name: String,
pub is_list: bool,
pub list_item_nullable: bool,
pub is_nullable: bool,
pub arguments: Vec<GraphQLArgument>,
pub description: Option<String>,
pub deprecation_reason: Option<String>,
}Expand description
Represents a GraphQL field (on Object or Interface types)
Fields§
§name: StringField name
type_name: StringField return type name
is_list: boolWhether the field returns a list
list_item_nullable: boolWhether list items are nullable (only meaningful if is_list is true)
is_nullable: boolWhether the field is nullable (default true)
arguments: Vec<GraphQLArgument>Field arguments
description: Option<String>Field description
deprecation_reason: Option<String>Deprecation reason (if deprecated)
Trait Implementations§
Source§impl Clone for GraphQLField
impl Clone for GraphQLField
Source§fn clone(&self) -> GraphQLField
fn clone(&self) -> GraphQLField
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 GraphQLField
impl Debug for GraphQLField
Source§impl<'de> Deserialize<'de> for GraphQLField
impl<'de> Deserialize<'de> for GraphQLField
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 GraphQLField
impl RefUnwindSafe for GraphQLField
impl Send for GraphQLField
impl Sync for GraphQLField
impl Unpin for GraphQLField
impl UnsafeUnpin for GraphQLField
impl UnwindSafe for GraphQLField
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