pub struct GraphQLEnumValue {
pub name: String,
pub description: Option<String>,
pub is_deprecated: bool,
pub deprecation_reason: Option<String>,
}Expand description
Represents an enum value
Fields§
§name: StringEnum value name
description: Option<String>Enum value description
is_deprecated: boolWhether this value is deprecated
deprecation_reason: Option<String>Deprecation reason
Trait Implementations§
Source§impl Clone for GraphQLEnumValue
impl Clone for GraphQLEnumValue
Source§fn clone(&self) -> GraphQLEnumValue
fn clone(&self) -> GraphQLEnumValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GraphQLEnumValue
impl Debug for GraphQLEnumValue
Source§impl<'de> Deserialize<'de> for GraphQLEnumValue
impl<'de> Deserialize<'de> for GraphQLEnumValue
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 GraphQLEnumValue
impl RefUnwindSafe for GraphQLEnumValue
impl Send for GraphQLEnumValue
impl Sync for GraphQLEnumValue
impl Unpin for GraphQLEnumValue
impl UnsafeUnpin for GraphQLEnumValue
impl UnwindSafe for GraphQLEnumValue
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