pub struct FeatureExtractionContext {
pub all_documents: Vec<SearchResult>,
pub query_stats: QueryStats,
pub collection_stats: CollectionStats,
pub user_context: Option<UserContext>,
}Expand description
Context for feature extraction
Fields§
§all_documents: Vec<SearchResult>All documents in the result set (for relative features)
query_stats: QueryStatsQuery statistics
collection_stats: CollectionStatsCollection statistics
user_context: Option<UserContext>User context
Trait Implementations§
Source§impl Clone for FeatureExtractionContext
impl Clone for FeatureExtractionContext
Source§fn clone(&self) -> FeatureExtractionContext
fn clone(&self) -> FeatureExtractionContext
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 FeatureExtractionContext
impl RefUnwindSafe for FeatureExtractionContext
impl Send for FeatureExtractionContext
impl Sync for FeatureExtractionContext
impl Unpin for FeatureExtractionContext
impl UnwindSafe for FeatureExtractionContext
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