pub struct DiscoveredProcedure {
pub id: String,
pub phase: String,
pub states: Vec<String>,
pub transitions: Vec<(String, String)>,
pub initial_state: String,
pub terminal_states: Vec<String>,
pub event_count: usize,
}Expand description
The state machine inferred for a single procedure from the event log.
Fields§
§id: StringProcedure identifier, taken directly from AuditEvent::procedure_id.
phase: StringPhase inferred from the first event belonging to this procedure.
states: Vec<String>All states encountered (union of from_state and to_state values).
transitions: Vec<(String, String)>Directed transitions as (from_state, to_state) pairs (deduplicated).
initial_state: StringThe from_state of the chronologically-first transition event.
terminal_states: Vec<String>States that appear as a to_state but never as a from_state in any
subsequent transition — these are the natural terminal states.
event_count: usizeNumber of events (of any kind) associated with this procedure.
Trait Implementations§
Source§impl Clone for DiscoveredProcedure
impl Clone for DiscoveredProcedure
Source§fn clone(&self) -> DiscoveredProcedure
fn clone(&self) -> DiscoveredProcedure
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 DiscoveredProcedure
impl Debug for DiscoveredProcedure
Auto Trait Implementations§
impl Freeze for DiscoveredProcedure
impl RefUnwindSafe for DiscoveredProcedure
impl Send for DiscoveredProcedure
impl Sync for DiscoveredProcedure
impl Unpin for DiscoveredProcedure
impl UnsafeUnpin for DiscoveredProcedure
impl UnwindSafe for DiscoveredProcedure
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