gremlin_client/process/traversal/step/
until.rs

1use crate::process::traversal::TraversalBuilder;
2use crate::structure::GValue;
3
4pub struct UntilStep {
5    params: Vec<GValue>,
6}
7
8impl UntilStep {
9    fn new(params: Vec<GValue>) -> Self {
10        UntilStep { params }
11    }
12}
13
14impl From<UntilStep> for Vec<GValue> {
15    fn from(step: UntilStep) -> Self {
16        step.params
17    }
18}
19
20impl From<TraversalBuilder> for UntilStep {
21    fn from(param: TraversalBuilder) -> Self {
22        UntilStep::new(vec![param.bytecode.into()])
23    }
24}