pub struct Entity {
pub id: EntityId,
pub name: String,
pub pronouns: Pronouns,
pub tags: FxHashSet<String>,
pub relationships: Vec<Relationship>,
pub voice_id: Option<VoiceId>,
pub properties: HashMap<String, Value>,
}Expand description
An entity is anything that can participate in a narrative event: a person, creature, place, object, or abstract concept.
The engine does not interpret tag semantics — it uses tags solely for grammar rule matching.
Fields§
§id: EntityId§name: String§pronouns: Pronouns§relationships: Vec<Relationship>§voice_id: Option<VoiceId>§properties: HashMap<String, Value>Implementations§
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