pub struct RewriteResult {
pub original_query: String,
pub rewritten_query: String,
pub strategy: RewriteStrategy,
pub confidence: f32,
pub explanation: String,
}Expand description
Result of query rewriting
Fields§
§original_query: StringOriginal query
rewritten_query: StringRewritten query
strategy: RewriteStrategyStrategy used for rewriting
confidence: f32Confidence score (0.0 to 1.0)
explanation: StringExplanation of the rewrite
Trait Implementations§
Source§impl Clone for RewriteResult
impl Clone for RewriteResult
Source§fn clone(&self) -> RewriteResult
fn clone(&self) -> RewriteResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RewriteResult
impl RefUnwindSafe for RewriteResult
impl Send for RewriteResult
impl Sync for RewriteResult
impl Unpin for RewriteResult
impl UnwindSafe for RewriteResult
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