Struct cynic_introspection::InputValue
source · #[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the argument or field
description: Option<String>A description of the argument or field
ty: FieldTypeThe type of this argument or field
default_value: Option<String>An optional default value for this field, represented as a GraphQL literal
Trait Implementations§
source§impl Clone for InputValue
impl Clone for InputValue
source§fn clone(&self) -> InputValue
fn clone(&self) -> InputValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InputValue
impl Debug for InputValue
source§impl PartialEq for InputValue
impl PartialEq for InputValue
source§fn eq(&self, other: &InputValue) -> bool
fn eq(&self, other: &InputValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§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.
impl Eq for InputValue
impl StructuralEq for InputValue
impl StructuralPartialEq for InputValue
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