Enum cynic_parser::type_system::Value
source · pub enum Value<'a> {
Variable(&'a str),
Int(i32),
Float(f32),
String(&'a str),
BlockString(&'a str),
Boolean(bool),
Null,
Enum(&'a str),
List(Vec<Value<'a>>),
Object(Vec<(&'a str, Value<'a>)>),
}
Variants§
Variable(&'a str)
Int(i32)
Float(f32)
String(&'a str)
BlockString(&'a str)
Boolean(bool)
Null
Enum(&'a str)
List(Vec<Value<'a>>)
Object(Vec<(&'a str, Value<'a>)>)
Implementations§
Trait Implementations§
source§impl<'a> From<ReadContext<'a, ValueId>> for Value<'a>
impl<'a> From<ReadContext<'a, ValueId>> for Value<'a>
source§fn from(reader: ReadContext<'a, ValueId>) -> Self
fn from(reader: ReadContext<'a, ValueId>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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