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§
source§impl GValue
impl GValue
sourcepub fn take<T>(self) -> GremlinResult<T>where
T: FromGValue,
pub fn take<T>(self) -> GremlinResult<T>where
T: FromGValue,
Examples found in repository?
examples/path.rs (line 9)
3 4 5 6 7 8 9 10 11 12 13 14 15
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
let results = client
.execute("g.V(param).outE().inV().path()", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Path>())
.collect::<Result<Vec<Path>, _>>()?;
println!("{:#?}", results);
Ok(())
}
More examples
examples/multithread.rs (line 12)
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
let c = client.clone();
let result = thread::spawn(move || {
c.execute("g.V(param)", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Vertex>())
.collect::<Result<Vec<Vertex>, _>>()
});
println!("{:?}", result.join());
Ok(())
}
examples/vertex.rs (line 9)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
let results = client
.execute("g.V(param)", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Vertex>())
.collect::<Result<Vec<Vertex>, _>>()?;
println!("Vertex count: {}", results.len());
let vertex = &results[0];
println!(
"Vertex with id: [{}] and label: [{}]",
vertex.id().get::<i64>()?,
vertex.label()
);
Ok(())
}
examples/connection_options.rs (line 16)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect(
ConnectionOptions::builder()
.host("localhost")
.port(8182)
.pool_size(1)
.credentials("stephen", "password")
.build(),
)?;
let results = client
.execute("g.V(param)", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Vertex>())
.collect::<Result<Vec<Vertex>, _>>()?;
println!("{:?}", results);
Ok(())
}
examples/edge_properties.rs (line 9)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
let results = client
.execute("g.V(param).outE().properties()", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Property>())
.collect::<Result<Vec<Property>, _>>()?;
println!("{:?}", results);
let results = client
.execute("g.V(param).outE().propertyMap()", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Map>())
.collect::<Result<Vec<Map>, _>>()?;
println!("{:?}", results);
Ok(())
}
examples/edge.rs (line 10)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
// Find outgoing edges for V[1]
let results = client
.execute("g.V(param).outE()", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Edge>())
.collect::<Result<Vec<Edge>, _>>()?;
println!("Edges count {}", results.len());
let first = &results[0];
println!(
"Edge with id: [{}] and label: [{}] from: [{}] to: [{}]",
first.id().get::<i32>()?,
first.label(),
first.out_v().id().get::<i64>()?,
first.in_v().id().get::<i64>()?
);
Ok(())
}
Additional examples can be found in:
sourcepub fn get<'a, T>(&'a self) -> GremlinResult<&'a T>where
T: BorrowFromGValue,
pub fn get<'a, T>(&'a self) -> GremlinResult<&'a T>where
T: BorrowFromGValue,
Examples found in repository?
examples/vertex_properties.rs (line 22)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
let results = client
.execute("g.V(param).properties()", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<VertexProperty>())
.collect::<Result<Vec<VertexProperty>, _>>()?;
println!("{:?}", results[0].get::<String>()?);
let results = client
.execute("g.V(param).propertyMap()", &[("param", &1)])?
.filter_map(Result::ok)
.map(|f| f.take::<Map>())
.collect::<Result<Vec<Map>, _>>()?;
println!(
"{:?}",
results[0]["name"].get::<List>()?[0]
.get::<VertexProperty>()?
.get::<String>()?
);
Ok(())
}
More examples
examples/traversal_complex.rs (line 26)
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = GremlinClient::connect("localhost")?;
let g = traversal().with_remote(client);
create_graph(&g)?;
let result = g
.v(())
.has_label("complex_vertex")
.has(("name", "test1"))
.out("complex_label")
.out("complex_label")
.value_map(())
.next()?
.expect("no vertices found");
println!(
"Found vertex with name {:?}",
result["name"].get::<List>().unwrap()[0]
);
let results = g
.v(())
.has_label("complex_vertex")
.has(("number", P::gt(3)))
.to_list()?;
println!(
"Found {} vertices with number greater than 3",
results.len()
);
let results = g
.v(())
.has_label("complex_vertex")
.has(("number", P::within((3, 6))))
.to_list()?;
println!("Found {} vertices with number 3 or 6", results.len());
let results = g
.v(())
.has_label("complex_vertex")
.where_(__.out("complex_label").count().is(P::gte(1)))
.to_list()?;
println!(
"Found {} vertices with 1 or more connected edges with label complex_label",
results.len()
);
Ok(())
}
Trait Implementations§
source§impl From<Cardinality> for GValue
impl From<Cardinality> for GValue
source§fn from(val: Cardinality) -> GValue
fn from(val: Cardinality) -> GValue
Converts to this type from the input type.
source§impl From<TraversalExplanation> for GValue
impl From<TraversalExplanation> for GValue
source§fn from(val: TraversalExplanation) -> Self
fn from(val: TraversalExplanation) -> Self
Converts to this type from the input type.
source§impl From<TraversalMetrics> for GValue
impl From<TraversalMetrics> for GValue
source§fn from(val: TraversalMetrics) -> Self
fn from(val: TraversalMetrics) -> Self
Converts to this type from the input type.
source§impl From<VertexProperty> for GValue
impl From<VertexProperty> for GValue
source§fn from(val: VertexProperty) -> Self
fn from(val: VertexProperty) -> Self
Converts to this type from the input type.
source§impl PartialEq for GValue
impl PartialEq for GValue
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: &GValue) -> GremlinResult<Self>
fn try_from(value: &GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
source§impl 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.
source§fn try_from(value: GValue) -> GremlinResult<Self>
fn try_from(value: GValue) -> GremlinResult<Self>
Performs the conversion.
impl StructuralPartialEq for GValue
Auto Trait Implementations§
impl Freeze for GValue
impl RefUnwindSafe for GValue
impl Send for GValue
impl Sync for GValue
impl Unpin for GValue
impl UnwindSafe for GValue
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