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
sourceimpl AstNode for Value
impl AstNode for Value
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode<GraphQLLanguage>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<GraphQLLanguage>
fn clone_for_update(&self) -> Self where
Self: Sized,
fn clone_subtree(&self) -> Self where
Self: Sized,
sourceimpl From<BooleanValue> for Value
impl From<BooleanValue> for Value
sourcefn from(node: BooleanValue) -> Value
fn from(node: BooleanValue) -> Value
Performs the conversion.
sourceimpl From<FloatValue> for Value
impl From<FloatValue> for Value
sourcefn from(node: FloatValue) -> Value
fn from(node: FloatValue) -> Value
Performs the conversion.
sourceimpl From<ObjectValue> for Value
impl From<ObjectValue> for Value
sourcefn from(node: ObjectValue) -> Value
fn from(node: ObjectValue) -> Value
Performs the conversion.
sourceimpl From<StringValue> for Value
impl From<StringValue> for Value
sourcefn from(node: StringValue) -> Value
fn from(node: StringValue) -> Value
Performs the conversion.
impl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more