#[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 duplicate 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§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.
impl Eq for InputValue
impl StructuralPartialEq for InputValue
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