kitt_score 0.1.0

Decision engine at the core of Project KITT — in-memory stateful matching with pluggable scoring backends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! State-update event — overwrites the attribute values for its kind at a location. See spec §3.2.

use crate::event::attr_set::AttrSet;
use crate::event::kind_ref::KindRef;
use crate::LocId;

/// Spec §3.2: a state-update event overwrites the prior state for its kind.
#[derive(Clone, Debug)]
pub struct StateUpdate<'a> {
    /// The location this update targets.
    pub location: LocId,
    /// The event kind being updated.
    pub kind: KindRef<'a>,
    /// Attribute values to apply.
    pub attrs: AttrSet<'a>,
}