pub struct DependencyConfig {
pub enabled: bool,
pub boost_per_dep: f32,
pub max_total_boost: f32,
pub rules: HashMap<String, ToolDependency>,
}Expand description
Configuration for the tool dependency graph feature.
Fields§
§enabled: boolWhether dependency gating is enabled. Default: false.
boost_per_dep: f32Similarity boost added per satisfied prefers dependency. Default: 0.15.
max_total_boost: f32Maximum total boost applied regardless of how many prefers deps are met. Default: 0.2.
rules: HashMap<String, ToolDependency>Per-tool dependency rules. Key is tool_id.
Trait Implementations§
Source§impl Clone for DependencyConfig
impl Clone for DependencyConfig
Source§fn clone(&self) -> DependencyConfig
fn clone(&self) -> DependencyConfig
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 DependencyConfig
impl Debug for DependencyConfig
Source§impl Default for DependencyConfig
impl Default for DependencyConfig
Source§impl<'de> Deserialize<'de> for DependencyConfig
impl<'de> Deserialize<'de> for DependencyConfig
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 DependencyConfig
impl RefUnwindSafe for DependencyConfig
impl Send for DependencyConfig
impl Sync for DependencyConfig
impl Unpin for DependencyConfig
impl UnsafeUnpin for DependencyConfig
impl UnwindSafe for DependencyConfig
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