pub struct DomainConfig {
pub name: String,
pub half_lives: HashMap<NodeType, f32>,
pub default_half_life: f32,
pub relations: Vec<String>,
pub git_co_change: bool,
}Expand description
Domain configuration for m1nd. Controls how the engine behaves for different domains (code, music production, supply chain, etc.).
Fields§
§name: StringHuman-readable domain name
half_lives: HashMap<NodeType, f32>Temporal decay half-life (in hours) per NodeType. Missing entries use default_half_life.
default_half_life: f32Default half-life for types not in the map
relations: Vec<String>Relation types recognized in this domain
git_co_change: boolWhether to use git-based co-change (only makes sense for code)
Implementations§
Source§impl DomainConfig
impl DomainConfig
Sourcepub fn half_life_for(&self, node_type: NodeType) -> f32
pub fn half_life_for(&self, node_type: NodeType) -> f32
Get half-life for a node type
Auto Trait Implementations§
impl Freeze for DomainConfig
impl RefUnwindSafe for DomainConfig
impl Send for DomainConfig
impl Sync for DomainConfig
impl Unpin for DomainConfig
impl UnsafeUnpin for DomainConfig
impl UnwindSafe for DomainConfig
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