pub enum SpecKind {
Run {
code: String,
},
Advice {
strategy: String,
task: Option<String>,
opts: Option<Value>,
},
Eval {
scenario: ScenarioRef,
strategy: String,
opts: Option<Value>,
auto_card: bool,
},
}Expand description
Discriminant for the execution kind carried by SessionSpec.
Each variant corresponds to one of the primary operations the engine can perform.
Variants§
Run
Execute a Lua code snippet directly.
Advice
Apply an advice package strategy to an optional task.
Fields
Eval
Evaluate a scenario against a strategy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpecKind
impl<'de> Deserialize<'de> for SpecKind
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 SpecKind
impl RefUnwindSafe for SpecKind
impl Send for SpecKind
impl Sync for SpecKind
impl Unpin for SpecKind
impl UnsafeUnpin for SpecKind
impl UnwindSafe for SpecKind
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