pub struct ContextPositioningConfig {
pub enable_positioning: bool,
pub head_percentage: f64,
pub tail_percentage: f64,
pub centrality_weight: f64,
pub relatedness_weight: f64,
pub query_relevance_weight: f64,
pub auto_exclude_tests: bool,
}
Expand description
Configuration for context positioning optimization
Fields§
§enable_positioning: bool
Enable context positioning optimization
head_percentage: f64
Percentage of context for HEAD positioning (query-relevant, high centrality)
tail_percentage: f64
Percentage of context for TAIL positioning (core functionality)
centrality_weight: f64
Weight for centrality in positioning decisions
Weight for file relatedness in grouping decisions
query_relevance_weight: f64
Weight for query relevance in HEAD positioning
auto_exclude_tests: bool
Auto-exclude test files from selection (focuses on code and docs only)
Trait Implementations§
Source§impl Clone for ContextPositioningConfig
impl Clone for ContextPositioningConfig
Source§fn clone(&self) -> ContextPositioningConfig
fn clone(&self) -> ContextPositioningConfig
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 moreSource§impl Debug for ContextPositioningConfig
impl Debug for ContextPositioningConfig
Source§impl Default for ContextPositioningConfig
impl Default for ContextPositioningConfig
Source§impl<'de> Deserialize<'de> for ContextPositioningConfig
impl<'de> Deserialize<'de> for ContextPositioningConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContextPositioningConfig
impl RefUnwindSafe for ContextPositioningConfig
impl Send for ContextPositioningConfig
impl Sync for ContextPositioningConfig
impl Unpin for ContextPositioningConfig
impl UnwindSafe for ContextPositioningConfig
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