pub struct ScenarioSpec {
pub id: Symbol,
pub setup: Symbol,
pub authorities: BTreeSet<Symbol>,
pub limits: Option<ScenarioLimits>,
pub inputs: Vec<ScenarioInput>,
pub observation_lanes: BTreeSet<ScenarioObservationLane>,
}Expand description
Complete metadata required before a repeatable scenario may execute.
Fields§
§id: SymbolStable scenario identity.
setup: SymbolStable identity of the installed setup, independent of host state.
Every authority the scenario is permitted to exercise.
limits: Option<ScenarioLimits>Required execution bounds; None is rejected by preflight.
inputs: Vec<ScenarioInput>Ordered semantic inputs.
observation_lanes: BTreeSet<ScenarioObservationLane>Explicit observation lanes.
Implementations§
Source§impl ScenarioSpec
impl ScenarioSpec
Sourcepub fn new(id: Symbol, setup: Symbol) -> Self
pub fn new(id: Symbol, setup: Symbol) -> Self
Start a scenario declaration with stable scenario and setup identities.
Declare an authority available to the scenario.
Sourcepub fn with_limits(self, limits: ScenarioLimits) -> Self
pub fn with_limits(self, limits: ScenarioLimits) -> Self
Declare hard execution bounds.
Sourcepub fn with_input(self, input: ScenarioInput) -> Self
pub fn with_input(self, input: ScenarioInput) -> Self
Append an ordered semantic input.
Sourcepub fn observing(self, lane: ScenarioObservationLane) -> Self
pub fn observing(self, lane: ScenarioObservationLane) -> Self
Select an observation lane.
Trait Implementations§
Source§impl Clone for ScenarioSpec
impl Clone for ScenarioSpec
Source§fn clone(&self) -> ScenarioSpec
fn clone(&self) -> ScenarioSpec
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 moreSource§impl Debug for ScenarioSpec
impl Debug for ScenarioSpec
impl Eq for ScenarioSpec
Source§impl PartialEq for ScenarioSpec
impl PartialEq for ScenarioSpec
impl StructuralPartialEq for ScenarioSpec
Auto Trait Implementations§
impl Freeze for ScenarioSpec
impl RefUnwindSafe for ScenarioSpec
impl Send for ScenarioSpec
impl Sync for ScenarioSpec
impl Unpin for ScenarioSpec
impl UnsafeUnpin for ScenarioSpec
impl UnwindSafe for ScenarioSpec
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.