pub struct Place {
pub id: EntityId,
pub name: String,
pub place_type: PlaceType,
pub status: Status,
pub status_since_event: Option<EntityId>,
pub region: Option<EntityId>,
pub description: String,
}Expand description
A settlement, region, dungeon, landmark, or ruin.
Fields§
§id: EntityIdUnique identifier for this place.
name: StringDisplay name.
place_type: PlaceTypeWhat kind of place this is.
status: StatusCurrent status (defaults to Status::Active).
status_since_event: Option<EntityId>The event that caused the current status, if any.
region: Option<EntityId>Parent region this place is located within.
description: StringFree-text description.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Place
impl<'de> Deserialize<'de> for Place
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 Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnsafeUnpin for Place
impl UnwindSafe for Place
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