pub struct FieldType {
pub kind: TypeKind,
pub name: Option<String>,
pub of_type: Option<Box<FieldType>>,
}Expand description
The type of a Field.
This may be either a wrapper or a named type, depending on the field in question
Fields§
§kind: TypeKindThe kind of type this Type is describing
name: Option<String>The name of the Type
This is an Option but the use of this struct means it should never
be None.
of_type: Option<Box<FieldType>>If kind is TypeKind::List or TypeKind::NonNull this contains the type
that is wrapped.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldType
impl<'de> Deserialize<'de> for FieldType
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
Source§impl QueryFragment for FieldType
impl QueryFragment for FieldType
Source§type SchemaType = __Type
type SchemaType = __Type
The type in a schema that this
QueryFragment representsSource§type VariablesFields = ()
type VariablesFields = ()
The variables that are required to execute this
QueryFragmentSource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
Adds this fragment to the query being built by
builderAuto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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