pub struct InputValue {
pub name: String,
pub description: Option<String>,
pub ty: FieldType,
pub default_value: Option<String>,
}Expand description
Represents field and directive arguments as well as the fields of an input object.
Fields§
§name: StringThe name of the argument/field
description: Option<String>A description of the argument/field
ty: FieldTypeThe type of this argument/field
default_value: Option<String>An optional default value for this field, represented as a GraphQL literal
Trait Implementations§
Source§impl Debug for InputValue
impl Debug for InputValue
Source§impl<'de> Deserialize<'de> for InputValue
impl<'de> Deserialize<'de> for InputValue
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 InputValue
impl QueryFragment for InputValue
Source§type SchemaType = __InputValue
type SchemaType = __InputValue
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
builderSource§impl TryFrom<InputValue> for InputValue
impl TryFrom<InputValue> for InputValue
Source§type Error = SchemaError
type Error = SchemaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InputValue
impl RefUnwindSafe for InputValue
impl Send for InputValue
impl Sync for InputValue
impl Unpin for InputValue
impl UnwindSafe for InputValue
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