pub struct IntrospectionInputValue {
pub name: String,
pub description: Option<String>,
pub input_type: IntrospectionType,
pub default_value: Option<String>,
pub is_deprecated: bool,
pub deprecation_reason: Option<String>,
pub validation_rules: Vec<IntrospectionValidationRule>,
}Expand description
__InputValue introspection type.
Per GraphQL spec, input values (arguments and input fields) can be deprecated.
The isDeprecated and deprecationReason fields are part of the June 2021 spec.
Fields§
§name: StringInput name.
description: Option<String>Input description.
input_type: IntrospectionTypeInput type.
default_value: Option<String>Default value (as JSON string).
is_deprecated: boolWhether the input value is deprecated.
deprecation_reason: Option<String>Deprecation reason (if deprecated).
validation_rules: Vec<IntrospectionValidationRule>Validation rules for this input value.
Trait Implementations§
Source§impl Clone for IntrospectionInputValue
impl Clone for IntrospectionInputValue
Source§fn clone(&self) -> IntrospectionInputValue
fn clone(&self) -> IntrospectionInputValue
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 IntrospectionInputValue
impl Debug for IntrospectionInputValue
Source§impl<'de> Deserialize<'de> for IntrospectionInputValue
impl<'de> Deserialize<'de> for IntrospectionInputValue
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
Auto Trait Implementations§
impl Freeze for IntrospectionInputValue
impl RefUnwindSafe for IntrospectionInputValue
impl Send for IntrospectionInputValue
impl Sync for IntrospectionInputValue
impl Unpin for IntrospectionInputValue
impl UnsafeUnpin for IntrospectionInputValue
impl UnwindSafe for IntrospectionInputValue
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