pub struct Scenario {
pub name: String,
pub config: SimConfig,
pub spawns: Vec<TimedSpawn>,
pub conditions: Vec<Condition>,
pub max_ticks: u64,
}Expand description
A complete scenario: config + timed spawns + success conditions.
Fields§
§name: StringHuman-readable scenario name.
config: SimConfigSimulation configuration.
spawns: Vec<TimedSpawn>Timed rider spawn events.
conditions: Vec<Condition>Pass/fail conditions for evaluation.
max_ticks: u64Max ticks to run before declaring timeout.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scenario
impl<'de> Deserialize<'de> for Scenario
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 Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnsafeUnpin for Scenario
impl UnwindSafe for Scenario
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