kermit_algos/queries/join_query.rs
1#[derive(Debug, Clone, PartialEq, Eq)]
2pub enum Term {
3 Var(String),
4 Atom(String),
5 Placeholder,
6}
7
8#[derive(Debug, Clone, PartialEq, Eq)]
9pub struct Predicate {
10 pub name: String,
11 pub terms: Vec<Term>,
12}
13
14#[derive(Debug, Clone, PartialEq, Eq)]
15pub struct JoinQuery {
16 pub head: Predicate,
17 pub body: Vec<Predicate>,
18}