pub struct Actor {
pub id: EntityId,
pub name: String,
pub actor_type: ActorType,
pub status: Status,
pub status_since_event: Option<EntityId>,
pub affiliations: Vec<EntityId>,
pub lifespan: Option<TimeSpan>,
pub description: String,
}Expand description
A character, faction, deity, organization, or creature.
Fields§
§id: EntityIdUnique identifier for this actor.
name: StringDisplay name.
actor_type: ActorTypeWhat kind of actor this is.
status: StatusCurrent status (defaults to Status::Active).
status_since_event: Option<EntityId>The event that caused the current status, if any.
affiliations: Vec<EntityId>Factions or organizations this actor belongs to.
lifespan: Option<TimeSpan>Birth-to-death (or founding-to-dissolution) time span.
description: StringFree-text description.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Actor
impl<'de> Deserialize<'de> for Actor
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 Actor
impl RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl UnsafeUnpin for Actor
impl UnwindSafe for Actor
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