pub enum QueryPatternV2 {
FieldValue {
field: QueryFieldV2,
comparator: QueryComparatorV2,
value: CompatibilityValueV2,
},
FieldComparison {
left: QueryFieldV2,
comparator: QueryComparatorV2,
right: QueryFieldV2,
},
FieldPresence {
field: QueryFieldV2,
present: bool,
},
BindingIid {
binding: BindingId,
iid: String,
},
RoleEdge {
include_relation_subtypes: bool,
player: BindingId,
relation: BindingId,
relation_type: TypeId,
role: RoleId,
},
Reachable {
min_depth: u8,
max_depth: u8,
relation: TypeId,
role_from: RoleId,
role_to: RoleId,
source: BindingId,
target: BindingId,
},
And {
patterns: Vec<QueryPatternV2>,
},
Or {
patterns: Vec<QueryPatternV2>,
},
Not {
pattern: Box<QueryPatternV2>,
},
}Expand description
The closed boolean compatibility algebra used by the production adapter.
Variants§
FieldValue
Compare one bound field with one exact scalar literal.
Fields
§
field: QueryFieldV2Descriptor-qualified field.
§
comparator: QueryComparatorV2Closed comparison operator.
§
value: CompatibilityValueV2Canonical or released-only typed literal.
FieldComparison
Compare two descriptor-qualified bound fields.
Fields
§
left: QueryFieldV2Left field.
§
comparator: QueryComparatorV2Closed non-string comparison operator.
§
right: QueryFieldV2Right field.
FieldPresence
Require one descriptor-qualified field to be present or absent.
Fields
§
field: QueryFieldV2Descriptor-qualified field.
BindingIid
Match one thing binding by its canonical provider IID.
RoleEdge
Require one descriptor-qualified role edge.
Fields
Reachable
Require one finite directed walk.
Fields
And
Require every child in source order.
Fields
§
patterns: Vec<QueryPatternV2>Non-empty children.
Or
Require at least one branch in source order.
Fields
§
patterns: Vec<QueryPatternV2>Non-empty branches.
Not
Negate one closed child.
Fields
§
pattern: Box<QueryPatternV2>Negated child.
Trait Implementations§
Source§impl Clone for QueryPatternV2
impl Clone for QueryPatternV2
Source§fn clone(&self) -> QueryPatternV2
fn clone(&self) -> QueryPatternV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryPatternV2
impl Debug for QueryPatternV2
Source§impl<'de> Deserialize<'de> for QueryPatternV2
impl<'de> Deserialize<'de> for QueryPatternV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueryPatternV2
Source§impl PartialEq for QueryPatternV2
impl PartialEq for QueryPatternV2
Source§impl Serialize for QueryPatternV2
impl Serialize for QueryPatternV2
impl StructuralPartialEq for QueryPatternV2
Auto Trait Implementations§
impl Freeze for QueryPatternV2
impl RefUnwindSafe for QueryPatternV2
impl Send for QueryPatternV2
impl Sync for QueryPatternV2
impl Unpin for QueryPatternV2
impl UnsafeUnpin for QueryPatternV2
impl UnwindSafe for QueryPatternV2
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