__

Struct __ 

Source
pub struct __ { /* private fields */ }

Methods from Deref<Target = AnonymousTraversalSource>§

Source

pub fn in_v(&self) -> TraversalBuilder

Source

pub fn aggregate<A>(&self, alias: A) -> TraversalBuilder
where A: Into<String>,

Source

pub fn add_v<A>(&self, label: A) -> TraversalBuilder
where A: Into<Labels>,

Source

pub fn property<A>(&self, key: Either2<&str, T>, value: A) -> TraversalBuilder
where A: Into<GValue>,

Source

pub fn v<T>(&self, ids: T) -> TraversalBuilder
where T: Into<GIDs>,

Source

pub fn add_e<A>(&self, label: A) -> TraversalBuilder
where A: Into<Labels>,

Source

pub fn count(&self) -> TraversalBuilder

Source

pub fn out<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Examples found in repository?
examples/traversal_complex.rs (line 51)
7fn main() -> Result<(), Box<dyn std::error::Error>> {
8    let client = GremlinClient::connect("localhost")?;
9
10    let g = traversal().with_remote(client);
11
12    create_graph(&g)?;
13
14    let result = g
15        .v(())
16        .has_label("complex_vertex")
17        .has(("name", "test1"))
18        .out("complex_label")
19        .out("complex_label")
20        .value_map(())
21        .next()?
22        .expect("no vertices found");
23
24    println!(
25        "Found vertex with name {:?}",
26        result["name"].get::<List>().unwrap()[0]
27    );
28
29    let results = g
30        .v(())
31        .has_label("complex_vertex")
32        .has(("number", P::gt(3)))
33        .to_list()?;
34
35    println!(
36        "Found {} vertices with number greater than 3",
37        results.len()
38    );
39
40    let results = g
41        .v(())
42        .has_label("complex_vertex")
43        .has(("number", P::within((3, 6))))
44        .to_list()?;
45
46    println!("Found {} vertices with number 3 or 6", results.len());
47
48    let results = g
49        .v(())
50        .has_label("complex_vertex")
51        .where_(__.out("complex_label").count().is(P::gte(1)))
52        .to_list()?;
53
54    println!(
55        "Found {} vertices with 1 or more connected edges with label complex_label",
56        results.len()
57    );
58
59    Ok(())
60}
Source

pub fn out_e<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn in_<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn in_e<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn both<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn both_e<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn other(&self) -> TraversalBuilder

Source

pub fn other_v(&self) -> TraversalBuilder

Source

pub fn values<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn has_label<L>(&self, labels: L) -> TraversalBuilder
where L: Into<Labels>,

Source

pub fn as_<A>(&self, alias: A) -> TraversalBuilder
where A: Into<String>,

Source

pub fn has<A>(&self, step: A) -> TraversalBuilder
where A: Into<HasStep>,

Source

pub fn has_many<A>(&self, steps: Vec<A>) -> TraversalBuilder
where A: Into<HasStep>,

Source

pub fn not<A>(&self, step: A) -> TraversalBuilder
where A: Into<NotStep>,

Source

pub fn loops<A>(&self, step: A) -> TraversalBuilder
where A: Into<LoopsStep>,

Source

pub fn select<A>(&self, step: A) -> TraversalBuilder
where A: Into<SelectStep>,

Source

pub fn fold(&self) -> TraversalBuilder

Source

pub fn unfold(&self) -> TraversalBuilder

Source

pub fn out_v(&self) -> TraversalBuilder

Source

pub fn is<A>(&self, val: A) -> TraversalBuilder
where A: IntoPredicate,

Source

pub fn or<A>(&self, step: A) -> TraversalBuilder
where A: Into<OrStep>,

Source

pub fn where_<A>(&self, step: A) -> TraversalBuilder
where A: Into<WhereStep>,

Source

pub fn cap(&self, step: &'static str) -> TraversalBuilder

Source

pub fn project<A>(&self, step: A) -> TraversalBuilder
where A: Into<SelectStep>,

Source

pub fn constant<A>(&self, value: A) -> TraversalBuilder
where A: Into<GValue>,

Source

pub fn until<A>(&self, step: A) -> TraversalBuilder
where A: Into<UntilStep>,

Source

pub fn repeat<A>(&self, step: A) -> TraversalBuilder
where A: Into<RepeatStep>,

Source

pub fn emit(&self) -> TraversalBuilder

Trait Implementations§

Source§

impl Deref for __

Source§

type Target = AnonymousTraversalSource

The resulting type after dereferencing.
Source§

fn deref(&self) -> &AnonymousTraversalSource

Dereferences the value.
Source§

impl LazyStatic for __

Auto Trait Implementations§

§

impl Freeze for __

§

impl RefUnwindSafe for __

§

impl Send for __

§

impl Sync for __

§

impl Unpin for __

§

impl UnwindSafe for __

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V