pub struct GraphQLType {
pub name: String,
pub kind: TypeKind,
pub fields: Vec<GraphQLField>,
pub description: Option<String>,
pub possible_types: Vec<String>,
pub enum_values: Vec<GraphQLEnumValue>,
pub input_fields: Vec<GraphQLInputField>,
}Expand description
Represents a GraphQL type definition
Fields§
§name: StringType name (e.g., “User”, “Post”)
kind: TypeKindThe kind of type (Object, Interface, Union, Enum, InputObject, Scalar)
fields: Vec<GraphQLField>Fields for Object and Interface types
description: Option<String>Type description from schema
possible_types: Vec<String>Possible types for Union or Interface implementations
enum_values: Vec<GraphQLEnumValue>Enum values (for Enum types)
input_fields: Vec<GraphQLInputField>Input fields (for InputObject types)
Trait Implementations§
Source§impl Clone for GraphQLType
impl Clone for GraphQLType
Source§fn clone(&self) -> GraphQLType
fn clone(&self) -> GraphQLType
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 GraphQLType
impl Debug for GraphQLType
Source§impl<'de> Deserialize<'de> for GraphQLType
impl<'de> Deserialize<'de> for GraphQLType
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 GraphQLType
impl RefUnwindSafe for GraphQLType
impl Send for GraphQLType
impl Sync for GraphQLType
impl Unpin for GraphQLType
impl UnsafeUnpin for GraphQLType
impl UnwindSafe for GraphQLType
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