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) -> ScenarioSpec
pub fn new(id: Symbol, setup: Symbol) -> ScenarioSpec
Start a scenario declaration with stable scenario and setup identities.
Declare an authority available to the scenario.
Sourcepub fn with_limits(self, limits: ScenarioLimits) -> ScenarioSpec
pub fn with_limits(self, limits: ScenarioLimits) -> ScenarioSpec
Declare hard execution bounds.
Sourcepub fn with_input(self, input: ScenarioInput) -> ScenarioSpec
pub fn with_input(self, input: ScenarioInput) -> ScenarioSpec
Append an ordered semantic input.
Sourcepub fn observing(self, lane: ScenarioObservationLane) -> ScenarioSpec
pub fn observing(self, lane: ScenarioObservationLane) -> ScenarioSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more