pub enum EventPayload {
EntityDiscovered {
entity_id: EntityId,
kind: EntityKind,
name: String,
file_path: String,
language: String,
source: DiscoverySource,
line_range: Option<(usize, usize)>,
},
EntityRemoved {
entity_id: EntityId,
reason: String,
},
DependencyLinked {
source_entity: EntityId,
target_entity: EntityId,
relation_type: RelationType,
confidence: f64,
source: DiscoverySource,
description: String,
},
ConfidenceUpdated {
source_entity: EntityId,
target_entity: EntityId,
new_evidence_confidence: f64,
source: DiscoverySource,
description: String,
},
ChangeDetected {
file_path: String,
change_type: ChangeType,
affected_entities: Vec<EntityId>,
before_snapshot: Option<String>,
after_snapshot: Option<String>,
},
ConflictFlagged {
entity_id: EntityId,
conflict_type: ConflictType,
sources: Vec<ConflictSource>,
description: String,
},
EdgeVerified {
source_entity: EntityId,
target_entity: EntityId,
},
IngestionCompleted {
source: DiscoverySource,
entities_count: usize,
edges_count: usize,
duration_ms: u64,
},
}Expand description
The typed payload of a context event.
Variants§
EntityDiscovered
A new entity was discovered in the codebase
EntityRemoved
An entity was removed (file deleted, function removed, etc.)
DependencyLinked
A relationship between entities was discovered
ConfidenceUpdated
New evidence was added to an existing edge
Fields
§
source: DiscoverySourceChangeDetected
A code change was detected
Fields
§
change_type: ChangeTypeConflictFlagged
A conflict or ambiguity was flagged
EdgeVerified
An edge was verified (resets decay timer)
IngestionCompleted
Batch ingestion completed
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 EventPayload
impl Debug for EventPayload
Source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
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 EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
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