Struct initiative_core::world::place::Place
source · pub struct Place {
pub uuid: Uuid,
pub data: PlaceData,
}
Fields§
§uuid: Uuid
§data: PlaceData
Implementations§
source§impl Place
impl Place
pub fn display_name(&self) -> NameView<'_>
pub fn display_summary(&self) -> SummaryView<'_>
pub fn display_description(&self) -> DescriptionView<'_>
pub fn display_details(&self, relations: PlaceRelations) -> DetailsView<'_>
pub fn get_words() -> &'static [&'static str]
pub fn lock_all(&mut self)
pub fn apply_diff(&mut self, diff: &mut PlaceData)
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
source§impl PartialEq for Place
impl PartialEq for Place
impl Eq for Place
impl StructuralPartialEq for Place
Auto Trait Implementations§
impl Freeze for Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)