pub enum StateScope {
Player,
Party,
}Expand description
Who holds a datum’s value (DSL v0.10, spec-0031).
Declared, never inferred. A datum’s multiplayer semantics is the one
thing about it that cannot be recovered from its uses: a purse read on a
talk-to looks identical whether every player has their own or the party
shares one, and the difference decides the whole design. spec-0031 states it
as a rule, and the type makes it un-omittable — there is no default.
Variants§
Player
Each player holds their own value. Read and written against the acting
player, so a bundle with no acting player (the scheduler) cannot touch one
(DW0503).
Party
One value the whole party shares — the same holder story flags use (spec-0018). Readable and writable from every audience, including the scheduler.
Implementations§
Trait Implementations§
Source§impl Clone for StateScope
impl Clone for StateScope
Source§fn clone(&self) -> StateScope
fn clone(&self) -> StateScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StateScope
Source§impl Debug for StateScope
impl Debug for StateScope
Source§impl<'de> Deserialize<'de> for StateScope
impl<'de> Deserialize<'de> for StateScope
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
impl Eq for StateScope
Source§impl JsonSchema for StateScope
impl JsonSchema for StateScope
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StateScope
impl PartialEq for StateScope
Source§impl Serialize for StateScope
impl Serialize for StateScope
impl StructuralPartialEq for StateScope
Auto Trait Implementations§
impl Freeze for StateScope
impl RefUnwindSafe for StateScope
impl Send for StateScope
impl Sync for StateScope
impl Unpin for StateScope
impl UnsafeUnpin for StateScope
impl UnwindSafe for StateScope
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