pub struct TimeEstimate {
pub min_duration_ms: u64,
pub avg_duration_ms: u64,
pub max_duration_ms: u64,
pub critical_path: Vec<String>,
pub node_times: HashMap<String, NodeTime>,
pub confidence: f64,
}Expand description
Execution time prediction for a workflow
Fields§
§min_duration_ms: u64Estimated minimum execution time
avg_duration_ms: u64Estimated average execution time
max_duration_ms: u64Estimated maximum execution time (including retries, worst case)
critical_path: Vec<String>Critical path through the workflow
node_times: HashMap<String, NodeTime>Time breakdown by node
confidence: f64Confidence level (0.0 to 1.0)
Implementations§
Source§impl TimeEstimate
impl TimeEstimate
Sourcepub fn format_summary(&self) -> String
pub fn format_summary(&self) -> String
Format as human-readable string
Sourcepub fn critical_path_nodes(&self) -> Vec<&NodeTime>
pub fn critical_path_nodes(&self) -> Vec<&NodeTime>
Get nodes on the critical path
Sourcepub fn slowest_nodes(&self, limit: usize) -> Vec<&NodeTime>
pub fn slowest_nodes(&self, limit: usize) -> Vec<&NodeTime>
Get slowest nodes
Trait Implementations§
Source§impl Clone for TimeEstimate
impl Clone for TimeEstimate
Source§fn clone(&self) -> TimeEstimate
fn clone(&self) -> TimeEstimate
Returns a duplicate of the value. Read more
1.0.0 · 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 TimeEstimate
impl Debug for TimeEstimate
Source§impl<'de> Deserialize<'de> for TimeEstimate
impl<'de> Deserialize<'de> for TimeEstimate
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 TimeEstimate
impl RefUnwindSafe for TimeEstimate
impl Send for TimeEstimate
impl Sync for TimeEstimate
impl Unpin for TimeEstimate
impl UnwindSafe for TimeEstimate
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