pub struct ExecutionsStore {
pub history: Vec<ExecutionEntry>,
pub active: Option<ActiveExecution>,
pub loading: bool,
pub error: Option<String>,
pub skill_filter: Option<String>,
pub status_filter: Option<ExecutionStatus>,
pub max_history: usize,
}Expand description
Executions store state
Fields§
§history: Vec<ExecutionEntry>Execution history (most recent first)
active: Option<ActiveExecution>Currently active execution (if any)
loading: boolWhether history is being loaded
error: Option<String>Error message
skill_filter: Option<String>Filter by skill
status_filter: Option<ExecutionStatus>Filter by status
max_history: usizeMaximum history entries to keep
Implementations§
Source§impl ExecutionsStore
impl ExecutionsStore
Sourcepub fn filtered_history(&self) -> Vec<&ExecutionEntry>
pub fn filtered_history(&self) -> Vec<&ExecutionEntry>
Get filtered history
Sourcepub fn get_execution(&self, id: &str) -> Option<&ExecutionEntry>
pub fn get_execution(&self, id: &str) -> Option<&ExecutionEntry>
Get execution by ID
Sourcepub fn recent_for_skill(
&self,
skill: &str,
limit: usize,
) -> Vec<&ExecutionEntry>
pub fn recent_for_skill( &self, skill: &str, limit: usize, ) -> Vec<&ExecutionEntry>
Get recent executions for a skill
Sourcepub fn success_rate(&self) -> f32
pub fn success_rate(&self) -> f32
Get success rate
Sourcepub fn average_duration_ms(&self) -> u64
pub fn average_duration_ms(&self) -> u64
Get average duration
Sourcepub fn has_active(&self) -> bool
pub fn has_active(&self) -> bool
Check if there’s an active execution
Trait Implementations§
Source§impl Clone for ExecutionsStore
impl Clone for ExecutionsStore
Source§fn clone(&self) -> ExecutionsStore
fn clone(&self) -> ExecutionsStore
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 ExecutionsStore
impl Debug for ExecutionsStore
Source§impl Default for ExecutionsStore
impl Default for ExecutionsStore
Source§impl PartialEq for ExecutionsStore
impl PartialEq for ExecutionsStore
Source§impl Reducer<ExecutionsStore> for ExecutionsAction
impl Reducer<ExecutionsStore> for ExecutionsAction
Source§fn apply(self, store: Rc<ExecutionsStore>) -> Rc<ExecutionsStore>
fn apply(self, store: Rc<ExecutionsStore>) -> Rc<ExecutionsStore>
Mutate state.
Source§impl Store for ExecutionsStore
impl Store for ExecutionsStore
impl StructuralPartialEq for ExecutionsStore
Auto Trait Implementations§
impl Freeze for ExecutionsStore
impl RefUnwindSafe for ExecutionsStore
impl Send for ExecutionsStore
impl Sync for ExecutionsStore
impl Unpin for ExecutionsStore
impl UnwindSafe for ExecutionsStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.