pub struct SearchCombineSpec {
pub sources: Vec<SearchWeightedSource>,
pub constant_expr: Option<Expr>,
pub limit_expr: Option<Expr>,
}Expand description
CIP-278 <combined specification clause>: COMBINE ( <weighted source clause>, ... ) USING WRRF [ WITH CONSTANT <expr> ] [ LIMIT <expr> ].
Rule 5: sources holds two or more weighted source clauses (fewer is a
parse error, raised where the list is parsed). A source may itself be a
nested <combined specification clause> (Example P3).
Fields§
§sources: Vec<SearchWeightedSource>§constant_expr: Option<Expr><constant specification clause>’s <value expression> – the WRRF
dampening constant; None means the default 60 (Rule 4).
limit_expr: Option<Expr>The optional <limit clause> of the combined specification – the n
highest-scoring results kept; None keeps all (Rule 7).
Trait Implementations§
Source§impl Clone for SearchCombineSpec
impl Clone for SearchCombineSpec
Source§impl Debug for SearchCombineSpec
impl Debug for SearchCombineSpec
Source§impl PartialEq for SearchCombineSpec
impl PartialEq for SearchCombineSpec
impl StructuralPartialEq for SearchCombineSpec
Auto Trait Implementations§
impl Forget for SearchCombineSpec
impl Freeze for SearchCombineSpec
impl Move for SearchCombineSpec
impl RefUnwindSafe for SearchCombineSpec
impl Send for SearchCombineSpec
impl Sync for SearchCombineSpec
impl Unpin for SearchCombineSpec
impl UnsafeUnpin for SearchCombineSpec
impl UnwindSafe for SearchCombineSpec
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