pub struct Entity {
pub id: String,
pub name: String,
pub entity_type: EntityType,
pub properties: HashMap<String, Value>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub confidence: f64,
pub source: String,
}Expand description
A node in the knowledge graph.
Fields§
§id: StringUnique identifier for this entity.
name: StringHuman-readable name.
entity_type: EntityTypeThe kind of entity (Person, Concept, Tool, etc.).
properties: HashMap<String, Value>Arbitrary key-value properties associated with this entity.
created_at: DateTime<Utc>When this entity was first created.
updated_at: DateTime<Utc>When this entity was last modified.
confidence: f64Confidence score (0.0 – 1.0) representing extraction reliability.
source: StringOrigin of this entity: “user”, “agent”, “tool_result”, “extracted”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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 Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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