pub struct Field {
pub name: String,
pub description: Option<String>,
pub args: Vec<InputValue>,
pub ty: FieldType,
pub is_deprecated: bool,
pub deprecation_reason: Option<String>,
}Expand description
Represents one of the fields of an object or interface type
Fields§
§name: StringThe name of the field
description: Option<String>A description of the field
args: Vec<InputValue>A list of arguments this field accepts.
ty: FieldTypeThe type of value returned by this field
is_deprecated: boolWhether this field is deprecated and should no longer be used.
deprecation_reason: Option<String>Optionally provides a reason why this field is deprecated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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 Field
impl QueryFragment for Field
Source§type SchemaType = __Field
type SchemaType = __Field
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 Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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