Struct cynic_introspection::query::InputValue
source · 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
§type SchemaType = __InputValue
type SchemaType = __InputValue
The type in a schema that this
QueryFragment represents§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
§type Error = SchemaError
type Error = SchemaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
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