Enum gremlin_client::structure::GValue
source · pub enum GValue {
Show 31 variants
Null,
Vertex(Vertex),
Edge(Edge),
VertexProperty(VertexProperty),
Property(Property),
Uuid(Uuid),
Int32(i32),
Int64(i64),
Float(f32),
Double(f64),
Date(DateTime<Utc>),
List(List),
Set(Set),
Map(Map),
Token(Token),
String(String),
Path(Path),
TraversalMetrics(TraversalMetrics),
Metric(Metric),
TraversalExplanation(TraversalExplanation),
IntermediateRepr(IntermediateRepr),
P(P),
T(T),
Bytecode(Bytecode),
Traverser(Traverser),
Scope(Scope),
Order(Order),
Bool(bool),
TextP(TextP),
Pop(Pop),
Cardinality(Cardinality),
}
Expand description
Represent possible values coming from the Gremlin Server
Variants
Null
Vertex(Vertex)
Edge(Edge)
VertexProperty(VertexProperty)
Property(Property)
Uuid(Uuid)
Int32(i32)
Int64(i64)
Float(f32)
Double(f64)
Date(DateTime<Utc>)
List(List)
Set(Set)
Map(Map)
Token(Token)
String(String)
Path(Path)
TraversalMetrics(TraversalMetrics)
Metric(Metric)
TraversalExplanation(TraversalExplanation)
IntermediateRepr(IntermediateRepr)
P(P)
T(T)
Bytecode(Bytecode)
Traverser(Traverser)
Scope(Scope)
Order(Order)
Bool(bool)
TextP(TextP)
Pop(Pop)
Cardinality(Cardinality)
Implementations
sourceimpl GValue
impl GValue
pub fn take<T>(self) -> GremlinResult<T>where
T: FromGValue,
pub fn get<'a, T>(&'a self) -> GremlinResult<&'a T>where
T: BorrowFromGValue,
Trait Implementations
sourceimpl From<Cardinality> for GValue
impl From<Cardinality> for GValue
sourcefn from(val: Cardinality) -> GValue
fn from(val: Cardinality) -> GValue
Converts to this type from the input type.
sourceimpl From<TraversalExplanation> for GValue
impl From<TraversalExplanation> for GValue
sourcefn from(val: TraversalExplanation) -> Self
fn from(val: TraversalExplanation) -> Self
Converts to this type from the input type.
sourceimpl From<TraversalMetrics> for GValue
impl From<TraversalMetrics> for GValue
sourcefn from(val: TraversalMetrics) -> Self
fn from(val: TraversalMetrics) -> Self
Converts to this type from the input type.
sourceimpl From<VertexProperty> for GValue
impl From<VertexProperty> for GValue
sourcefn from(val: VertexProperty) -> Self
fn from(val: VertexProperty) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<&GValue> for HashSet<DateTime<Utc>>
impl TryFrom<&GValue> for HashSet<DateTime<Utc>>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for HashSet<String>
impl TryFrom<&GValue> for HashSet<String>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for HashSet<Uuid>
impl TryFrom<&GValue> for HashSet<Uuid>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for HashSet<bool>
impl TryFrom<&GValue> for HashSet<bool>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for HashSet<i32>
impl TryFrom<&GValue> for HashSet<i32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for HashSet<i64>
impl TryFrom<&GValue> for HashSet<i64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<DateTime<Utc>>
impl TryFrom<&GValue> for Vec<DateTime<Utc>>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<String>
impl TryFrom<&GValue> for Vec<String>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<Uuid>
impl TryFrom<&GValue> for Vec<Uuid>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<bool>
impl TryFrom<&GValue> for Vec<bool>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<f32>
impl TryFrom<&GValue> for Vec<f32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<f64>
impl TryFrom<&GValue> for Vec<f64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<i32>
impl TryFrom<&GValue> for Vec<i32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<&GValue> for Vec<i64>
impl TryFrom<&GValue> for Vec<i64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for BTreeMap<String, GValue>
impl TryFrom<GValue> for BTreeMap<String, GValue>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for DateTime<Utc>
impl TryFrom<GValue> for DateTime<Utc>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashMap<GKey, GValue>
impl TryFrom<GValue> for HashMap<GKey, GValue>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashMap<String, GValue>
impl TryFrom<GValue> for HashMap<String, GValue>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashSet<DateTime<Utc>>
impl TryFrom<GValue> for HashSet<DateTime<Utc>>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashSet<String>
impl TryFrom<GValue> for HashSet<String>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashSet<Uuid>
impl TryFrom<GValue> for HashSet<Uuid>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashSet<bool>
impl TryFrom<GValue> for HashSet<bool>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashSet<i32>
impl TryFrom<GValue> for HashSet<i32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for HashSet<i64>
impl TryFrom<GValue> for HashSet<i64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<DateTime<Utc>>
impl TryFrom<GValue> for Option<DateTime<Utc>>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<String>
impl TryFrom<GValue> for Option<String>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<Uuid>
impl TryFrom<GValue> for Option<Uuid>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<bool>
impl TryFrom<GValue> for Option<bool>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<f32>
impl TryFrom<GValue> for Option<f32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<f64>
impl TryFrom<GValue> for Option<f64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<i32>
impl TryFrom<GValue> for Option<i32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Option<i64>
impl TryFrom<GValue> for Option<i64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for String
impl TryFrom<GValue> for String
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Uuid
impl TryFrom<GValue> for Uuid
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<DateTime<Utc>>
impl TryFrom<GValue> for Vec<DateTime<Utc>>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<String>
impl TryFrom<GValue> for Vec<String>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<Uuid>
impl TryFrom<GValue> for Vec<Uuid>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<bool>
impl TryFrom<GValue> for Vec<bool>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<f32>
impl TryFrom<GValue> for Vec<f32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<f64>
impl TryFrom<GValue> for Vec<f64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<i32>
impl TryFrom<GValue> for Vec<i32>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for Vec<i64>
impl TryFrom<GValue> for Vec<i64>
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for bool
impl TryFrom<GValue> for bool
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for f32
impl TryFrom<GValue> for f32
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for f64
impl TryFrom<GValue> for f64
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for i32
impl TryFrom<GValue> for i32
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
sourceimpl TryFrom<GValue> for i64
impl TryFrom<GValue> for i64
type Error = GremlinError
type Error = GremlinError
The type returned in the event of a conversion error.
sourcefn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
impl StructuralPartialEq for GValue
Auto Trait Implementations
impl RefUnwindSafe for GValue
impl Send for GValue
impl Sync for GValue
impl Unpin for GValue
impl UnwindSafe for GValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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