pub struct WorldMeta {
pub id: String,
pub title: String,
pub description: String,
pub author: Option<Identity>,
pub codex: Vec<String>,
pub license: Option<String>,
pub extra: Extra,
}Expand description
Identity + descriptive metadata for the world.
Fields§
§id: StringStable id, unique within the host (the last path segment of its Locator).
title: String§description: StringOptional metadata is omitted when unset, never emitted as null or
"". A consumer should be able to test presence rather than presence-
and-emptiness; when a generated world carried author: null and
description: "", the first tool to read it filled nothing in, because
its or_insert saw a key that was already there.
Provider-agnostic author identity (DID-style), if declared.
codex: Vec<String>Codex slugs describing this world (canonical meaning).
license: Option<String>§extra: ExtraUnknown fields, preserved across a round trip (see Extra).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorldMeta
impl<'de> Deserialize<'de> for WorldMeta
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 WorldMeta
impl RefUnwindSafe for WorldMeta
impl Send for WorldMeta
impl Sync for WorldMeta
impl Unpin for WorldMeta
impl UnsafeUnpin for WorldMeta
impl UnwindSafe for WorldMeta
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