Struct initiative_core::world::place::PlaceData
source · pub struct PlaceData {
pub location_uuid: Field<Uuid>,
pub subtype: Field<PlaceType>,
pub name: Field<String>,
pub description: Field<String>,
}
Fields§
§location_uuid: Field<Uuid>
§subtype: Field<PlaceType>
§name: Field<String>
§description: Field<String>
Implementations§
source§impl PlaceData
impl PlaceData
pub fn display_name(&self) -> NameView<'_>
pub fn display_summary(&self) -> SummaryView<'_>
pub fn display_description(&self) -> DescriptionView<'_>
pub fn display_details( &self, uuid: Uuid, relations: PlaceRelations, ) -> DetailsView<'_>
pub fn lock_all(&mut self)
pub fn apply_diff(&mut self, diff: &mut Self)
Trait Implementations§
source§impl Autocomplete for PlaceData
impl Autocomplete for PlaceData
fn autocomplete<'life0, 'life1, 'async_trait>(
input: &'life0 str,
_app_meta: &'life1 AppMeta,
) -> Pin<Box<dyn Future<Output = Vec<AutocompleteSuggestion>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
source§impl<'de> Deserialize<'de> for PlaceData
impl<'de> Deserialize<'de> for PlaceData
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 Generate for PlaceData
impl Generate for PlaceData
fn regenerate(&mut self, rng: &mut impl Rng, demographics: &Demographics)
fn generate(rng: &mut impl Rng, demographics: &Demographics) -> Self
source§impl PartialEq for PlaceData
impl PartialEq for PlaceData
impl Eq for PlaceData
impl StructuralPartialEq for PlaceData
Auto Trait Implementations§
impl Freeze for PlaceData
impl RefUnwindSafe for PlaceData
impl Send for PlaceData
impl Sync for PlaceData
impl Unpin for PlaceData
impl UnwindSafe for PlaceData
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
)