pub struct ScenarioConfig {Show 13 fields
pub base_url: Option<String>,
pub llm_url: Option<String>,
pub llm_model: Option<String>,
pub llm_api_key: Option<String>,
pub llm_headers: HashMap<String, String>,
pub browser_headless: Option<bool>,
pub timeout_secs: Option<u64>,
pub viewport_width: Option<u32>,
pub viewport_height: Option<u32>,
pub start_url: Option<String>,
pub auto_navigate: bool,
pub temperature: f64,
pub thinking: bool,
}Expand description
Global scenario configuration with per-test overridable fields.
Fields§
§base_url: Option<String>Base URL for relative navigation.
llm_url: Option<String>LLM server base URL.
llm_model: Option<String>LLM model name.
llm_api_key: Option<String>LLM API key (Bearer token).
llm_headers: HashMap<String, String>Custom HTTP headers as JSON key-value pairs.
browser_headless: Option<bool>Run browser in headless mode.
timeout_secs: Option<u64>HTTP / browser action timeout in seconds.
viewport_width: Option<u32>Browser viewport width.
viewport_height: Option<u32>Browser viewport height.
start_url: Option<String>Default URL every test auto-navigates to before running its steps.
Whether to auto-navigate to start_url before test steps.
Disable when a test starts with click-based navigation.
temperature: f64LLM temperature (0.0–1.0). Lower = more deterministic.
thinking: boolEnable thinking/reasoning mode (for models that support it).
Trait Implementations§
Source§impl Clone for ScenarioConfig
impl Clone for ScenarioConfig
Source§fn clone(&self) -> ScenarioConfig
fn clone(&self) -> ScenarioConfig
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 ScenarioConfig
impl Debug for ScenarioConfig
Source§impl Default for ScenarioConfig
impl Default for ScenarioConfig
Source§fn default() -> ScenarioConfig
fn default() -> ScenarioConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScenarioConfig
impl<'de> Deserialize<'de> for ScenarioConfig
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 ScenarioConfig
impl RefUnwindSafe for ScenarioConfig
impl Send for ScenarioConfig
impl Sync for ScenarioConfig
impl Unpin for ScenarioConfig
impl UnsafeUnpin for ScenarioConfig
impl UnwindSafe for ScenarioConfig
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