pub struct Field {
pub name: String,
pub description: Option<String>,
pub type: TypeReference,
pub arguments: Vec<FieldArgument>,
pub default_value: Option<Value>,
pub directives: IndexMap<String, Value>,
}Expand description
A field definition.
Fields§
§name: StringField name.
description: Option<String>Optional description.
type: TypeReferenceField type reference.
arguments: Vec<FieldArgument>Field arguments, for object and interface fields.
default_value: Option<Value>Default value, if an input object field declares one.
directives: IndexMap<String, Value>Generic map of directives.
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
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin 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