pub struct Note {
pub header: Header,
pub kind: String,
pub status: NoteStatus,
pub content: String,
pub properties: BTreeMap<String, PropertyValue>,
pub tags: Vec<String>,
pub salience: Option<f64>,
pub decay_factor: Option<f64>,
pub expires_at: Option<Timestamp>,
pub deleted_at: Option<Timestamp>,
}Expand description
A note record — temporal-referential content plus free-form properties.
When present, salience must be finite and in [0.0, 1.0], and
decay_factor must be finite and non-negative. When the serde feature
is enabled, deserialization rejects out-of-range values.
Fields§
§header: HeaderIdentity and namespace metadata shared by all substrate records.
kind: StringPack-declared kind string (e.g. "observation", "task", "memory").
status: NoteStatusCross-cutting lifecycle status.
content: StringMain textual body of the note.
properties: BTreeMap<String, PropertyValue>Arbitrary structured metadata as key-value pairs.
Categorical labels for filtering and retrieval.
salience: Option<f64>Retrieval priority weight in [0.0, 1.0]; higher values surface the note sooner.
decay_factor: Option<f64>Exponential decay rate applied to salience over time; 0.0 means no decay.
expires_at: Option<Timestamp>Optional expiry timestamp after which the note is treated as inactive.
deleted_at: Option<Timestamp>Set when the note is soft-deleted; absent means active.