pub struct PlanOptions {
pub max_depth: u32,
pub estimate_durations: bool,
pub sample_runs: u32,
}Expand description
Knobs for Engine::plan_handler.
§Examples
use ironflow_engine::plan::{PlanOptions, DEFAULT_PLAN_MAX_DEPTH};
let options = PlanOptions::default();
assert_eq!(options.max_depth, DEFAULT_PLAN_MAX_DEPTH);Fields§
§max_depth: u32How deep sub-workflows are expanded. Must be at least 1.
estimate_durations: boolWhether step durations are estimated from run history.
sample_runs: u32How many past runs are sampled when estimating durations.
Trait Implementations§
Source§impl Clone for PlanOptions
impl Clone for PlanOptions
Source§impl Debug for PlanOptions
impl Debug for PlanOptions
Auto Trait Implementations§
impl Freeze for PlanOptions
impl RefUnwindSafe for PlanOptions
impl Send for PlanOptions
impl Sync for PlanOptions
impl Unpin for PlanOptions
impl UnsafeUnpin for PlanOptions
impl UnwindSafe for PlanOptions
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