pub enum QueryOp {
EntityScan {
entity_type: String,
},
Filter {
property: String,
value: String,
},
Join {
left: Box<QueryOp>,
right: Box<QueryOp>,
join_type: JoinType,
},
Neighbors {
source: Box<QueryOp>,
relation_type: Option<String>,
max_hops: usize,
},
Union {
left: Box<QueryOp>,
right: Box<QueryOp>,
},
Limit {
source: Box<QueryOp>,
count: usize,
},
}Expand description
Query operation types
Variants§
EntityScan
Scan all entities of a type
Filter
Filter entities by property
Join
Join two results on entity relationships
Fields
Neighbors
Get neighbors of entities
Fields
Union
Union of two operations
Limit
Limit results
Trait Implementations§
impl StructuralPartialEq for QueryOp
Auto Trait Implementations§
impl Freeze for QueryOp
impl RefUnwindSafe for QueryOp
impl Send for QueryOp
impl Sync for QueryOp
impl Unpin for QueryOp
impl UnsafeUnpin for QueryOp
impl UnwindSafe for QueryOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more