[][src]Enum gremlin_client::GValue

pub enum GValue {
    Vertex(Vertex),
    Edge(Edge),
    VertexProperty(VertexProperty),
    Property(Property),
    Uuid(Uuid),
    Int32(i32),
    Int64(i64),
    Float(f32),
    Double(f64),
    Date(DateTime<Utc>),
    List(List),
    Set(Vec<GValue>),
    Map(Map),
    String(String),
    Path(Path),
    TraversalMetrics(TraversalMetrics),
    Metric(Metric),
    TraversalExplanation(TraversalExplanation),
    IntermediateRepr(IntermediateRepr),
}

Represent possible values coming from the Gremlin Server

Variants

Vertex(Vertex)Edge(Edge)VertexProperty(VertexProperty)Property(Property)Uuid(Uuid)Int32(i32)Int64(i64)Float(f32)Double(f64)Date(DateTime<Utc>)List(List)Set(Vec<GValue>)Map(Map)String(String)Path(Path)TraversalMetrics(TraversalMetrics)Metric(Metric)TraversalExplanation(TraversalExplanation)IntermediateRepr(IntermediateRepr)

Methods

impl GValue[src]

pub fn take<T>(self) -> GremlinResult<T> where
    T: FromGValue, 
[src]

pub fn get<'a, T>(&'a self) -> GremlinResult<&'a T> where
    T: BorrowFromGValue, 
[src]

Trait Implementations

impl PartialEq<GValue> for GValue[src]

impl From<DateTime<Utc>> for GValue[src]

impl From<String> for GValue[src]

impl From<i32> for GValue[src]

impl From<i64> for GValue[src]

impl From<f32> for GValue[src]

impl From<f64> for GValue[src]

impl<'a> From<&'a str> for GValue[src]

impl From<Vertex> for GValue[src]

impl From<Path> for GValue[src]

impl From<Edge> for GValue[src]

impl From<VertexProperty> for GValue[src]

impl From<TraversalMetrics> for GValue[src]

impl From<TraversalExplanation> for GValue[src]

impl From<Metric> for GValue[src]

impl From<Property> for GValue[src]

impl From<HashMap<String, GValue, RandomState>> for GValue[src]

impl From<Vec<GValue>> for GValue[src]

impl From<GValue> for Vec<GValue>[src]

impl From<GValue> for VecDeque<GValue>[src]

impl Clone for GValue[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GValue[src]

Auto Trait Implementations

impl Send for GValue

impl Sync for GValue

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.