pub struct EnumValue {
pub name: String,
pub description: Option<String>,
pub is_deprecated: bool,
pub deprecation_reason: Option<String>,
}Expand description
Represents one of the possible values of an enum type
Fields§
§name: StringThe name of the value
description: Option<String>A description of the value
is_deprecated: boolWhether the value is deprecated and should no longer be used.
deprecation_reason: Option<String>Optionally provides a reason why this enum value is deprecated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumValue
impl<'de> Deserialize<'de> for EnumValue
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 EnumValue
impl QueryFragment for EnumValue
Source§type SchemaType = __EnumValue
type SchemaType = __EnumValue
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
builderAuto Trait Implementations§
impl Freeze for EnumValue
impl RefUnwindSafe for EnumValue
impl Send for EnumValue
impl Sync for EnumValue
impl Unpin for EnumValue
impl UnwindSafe for EnumValue
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