Struct query_structure::ast::EnumValue
source · pub struct EnumValue {
pub name: Identifier,
pub attributes: Vec<Attribute>,
pub span: Span,
/* private fields */
}
Expand description
An enum value definition.
Fields§
§name: Identifier
The name of the enum value as it will be exposed by the api.
attributes: Vec<Attribute>
§span: Span
The location of this enum value in the text representation.
Trait Implementations§
source§impl WithAttributes for EnumValue
impl WithAttributes for EnumValue
source§fn attributes(&self) -> &[Attribute]
fn attributes(&self) -> &[Attribute]
The attributes.
source§impl WithDocumentation for EnumValue
impl WithDocumentation for EnumValue
source§fn documentation(&self) -> Option<&str>
fn documentation(&self) -> Option<&str>
The documentation string, if defined.
source§impl WithIdentifier for EnumValue
impl WithIdentifier for EnumValue
source§fn identifier(&self) -> &Identifier
fn identifier(&self) -> &Identifier
The identifier.
Auto Trait Implementations§
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