pub enum IRExpr {
PropAccess {
variable: String,
property: String,
},
Nearest {
variable: String,
property: String,
query: Box<IRExpr>,
},
Search {
field: Box<IRExpr>,
query: Box<IRExpr>,
},
Fuzzy {
field: Box<IRExpr>,
query: Box<IRExpr>,
max_edits: Option<Box<IRExpr>>,
},
MatchText {
field: Box<IRExpr>,
query: Box<IRExpr>,
},
Bm25 {
field: Box<IRExpr>,
query: Box<IRExpr>,
},
Rrf {
primary: Box<IRExpr>,
secondary: Box<IRExpr>,
k: Option<Box<IRExpr>>,
},
Variable(String),
Param(String),
Literal(Literal),
Aggregate {
func: AggFunc,
arg: Box<IRExpr>,
},
AliasRef(String),
}Variants§
PropAccess
Nearest
Search
Fuzzy
MatchText
Bm25
Rrf
Variable(String)
Param(String)
Literal(Literal)
Aggregate
AliasRef(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IRExpr
impl RefUnwindSafe for IRExpr
impl Send for IRExpr
impl Sync for IRExpr
impl Unpin for IRExpr
impl UnsafeUnpin for IRExpr
impl UnwindSafe for IRExpr
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