solomon_gremlin/structure/
path.rs

1use crate::structure::{GValue, List};
2
3#[derive(Debug, PartialEq, Clone)]
4pub struct Path {
5	labels: Box<GValue>,
6	objects: List,
7}
8
9impl Path {
10	pub fn new(labels: GValue, objects: List) -> Self {
11		Path {
12			labels: Box::new(labels),
13			objects,
14		}
15	}
16
17	pub fn objects(&self) -> &List {
18		&self.objects
19	}
20}