Struct Note
Sourcepub struct Note {Show 17 fields
pub note_id: NoteId,
pub note_type: NoteType,
pub title: String,
pub content: String,
pub content_hash: ContentHash,
pub embedding: Option<EmbeddingVector>,
pub source_trajectory_ids: Vec<TrajectoryId>,
pub source_artifact_ids: Vec<ArtifactId>,
pub ttl: TTL,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub accessed_at: DateTime<Utc>,
pub access_count: i32,
pub superseded_by: Option<NoteId>,
pub metadata: Option<Value>,
pub abstraction_level: AbstractionLevel,
pub source_note_ids: Vec<NoteId>,
}Expand description
Note - long-term cross-trajectory knowledge. Notes persist beyond individual trajectories.
Fields§
§note_id: NoteId§note_type: NoteType§title: String§content: String§content_hash: ContentHash§embedding: Option<EmbeddingVector>§source_trajectory_ids: Vec<TrajectoryId>§source_artifact_ids: Vec<ArtifactId>§ttl: TTL§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§accessed_at: DateTime<Utc>§access_count: i32§superseded_by: Option<NoteId>§metadata: Option<Value>§abstraction_level: AbstractionLevelSemantic abstraction tier (Raw=L0, Summary=L1, Principle=L2)
source_note_ids: Vec<NoteId>Notes this was derived from (for L1/L2 derivation chains)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Note, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Note, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventSourced for Note
impl EventSourced for Note
Source§fn from_events(events: &[Event<Value>]) -> Option<Note>
fn from_events(events: &[Event<Value>]) -> Option<Note>
Reconstruct entity state from a sequence of events. Read more
Source§fn apply_event(&mut self, event: &Event<Value>)
fn apply_event(&mut self, event: &Event<Value>)
Apply a single event to update state (used for incremental updates).
Source§fn relevant_event_kinds() -> &'static [EventKind]
fn relevant_event_kinds() -> &'static [EventKind]
The event kinds this entity cares about.
Source§impl Serialize for Note
impl Serialize for Note
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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