Enum apollo_parser::ast::Value
source · pub enum Value {
Variable(Variable),
StringValue(StringValue),
FloatValue(FloatValue),
IntValue(IntValue),
BooleanValue(BooleanValue),
NullValue(NullValue),
EnumValue(EnumValue),
ListValue(ListValue),
ObjectValue(ObjectValue),
}
Variants§
Variable(Variable)
StringValue(StringValue)
FloatValue(FloatValue)
IntValue(IntValue)
BooleanValue(BooleanValue)
NullValue(NullValue)
EnumValue(EnumValue)
ListValue(ListValue)
ObjectValue(ObjectValue)
Trait Implementations§
source§impl AstNode for Value
impl AstNode for Value
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl From<BooleanValue> for Value
impl From<BooleanValue> for Value
source§fn from(node: BooleanValue) -> Value
fn from(node: BooleanValue) -> Value
Converts to this type from the input type.
source§impl From<FloatValue> for Value
impl From<FloatValue> for Value
source§fn from(node: FloatValue) -> Value
fn from(node: FloatValue) -> Value
Converts to this type from the input type.
source§impl From<ObjectValue> for Value
impl From<ObjectValue> for Value
source§fn from(node: ObjectValue) -> Value
fn from(node: ObjectValue) -> Value
Converts to this type from the input type.
source§impl From<StringValue> for Value
impl From<StringValue> for Value
source§fn from(node: StringValue) -> Value
fn from(node: StringValue) -> Value
Converts to this type from the input type.