pub struct SelectionContext {
pub file_count: usize,
pub avg_importance: f64,
pub dependency_density: f64,
pub budget_ratio: f64,
pub dominant_file_type: String,
pub project_size: ProjectSize,
pub time_constraint: TimeConstraint,
}Expand description
Context features for routing decisions
Fields§
§file_count: usizeNumber of available files
avg_importance: f64Average file importance score
dependency_density: f64Dependency graph density (edges/nodes)
budget_ratio: f64Budget constraint ratio (available/total)
dominant_file_type: StringDominant file type (source, test, config, etc.)
project_size: ProjectSizeProject size category
time_constraint: TimeConstraintTime constraint level
Trait Implementations§
Source§impl Clone for SelectionContext
impl Clone for SelectionContext
Source§fn clone(&self) -> SelectionContext
fn clone(&self) -> SelectionContext
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 SelectionContext
impl Debug for SelectionContext
Source§impl<'de> Deserialize<'de> for SelectionContext
impl<'de> Deserialize<'de> for SelectionContext
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 SelectionContext
impl RefUnwindSafe for SelectionContext
impl Send for SelectionContext
impl Sync for SelectionContext
impl Unpin for SelectionContext
impl UnwindSafe for SelectionContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more