pub struct PracticeSpec {
pub name: String,
pub affordances: Vec<String>,
pub turn_policy: TurnPolicy,
pub duration_policy: DurationPolicy,
pub entry_condition_source: String,
}Expand description
Full specification for a practice, deserialized from a TOML definition file.
Fields§
§name: StringHuman-readable name for this practice (e.g. “negotiation”).
affordances: Vec<String>Affordance identifiers available within this practice.
turn_policy: TurnPolicyHow turn order is determined. Defaults to TurnPolicy::RoundRobin.
duration_policy: DurationPolicyHow long the practice runs. Defaults to DurationPolicy::SingleExchange.
entry_condition_source: StringRaw fabula DSL source for the practice entry condition. Empty means always enterable.
Trait Implementations§
Source§impl Clone for PracticeSpec
impl Clone for PracticeSpec
Source§fn clone(&self) -> PracticeSpec
fn clone(&self) -> PracticeSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PracticeSpec
impl Debug for PracticeSpec
Source§impl<'de> Deserialize<'de> for PracticeSpec
impl<'de> Deserialize<'de> for PracticeSpec
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 PracticeSpec
impl PartialEq for PracticeSpec
Source§impl Serialize for PracticeSpec
impl Serialize for PracticeSpec
impl StructuralPartialEq for PracticeSpec
Auto Trait Implementations§
impl Freeze for PracticeSpec
impl RefUnwindSafe for PracticeSpec
impl Send for PracticeSpec
impl Sync for PracticeSpec
impl Unpin for PracticeSpec
impl UnsafeUnpin for PracticeSpec
impl UnwindSafe for PracticeSpec
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