pub enum ValidationIssue {
OrphanedState {
state_id: String,
},
NoPathToFinal {
from_state: String,
},
DeadEndState {
state_id: String,
},
NonDeterministic {
state_id: String,
event: String,
transitions: Vec<String>,
},
UnhandledEvent {
state_id: String,
event: String,
},
UnguardedSelfLoop {
transition_id: String,
},
}Expand description
Types of validation issues.
Variants§
OrphanedState
State is not reachable from initial state
NoPathToFinal
No path to any final state
DeadEndState
Dead-end state (non-final with no outgoing transitions)
NonDeterministic
Non-deterministic transitions
UnhandledEvent
Missing event handler
UnguardedSelfLoop
Self-loop without guard (potential infinite loop)
Implementations§
Source§impl ValidationIssue
impl ValidationIssue
Sourcepub fn severity(&self) -> IssueSeverity
pub fn severity(&self) -> IssueSeverity
Get the severity of this issue.
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§fn clone(&self) -> ValidationIssue
fn clone(&self) -> ValidationIssue
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 moreAuto Trait Implementations§
impl Freeze for ValidationIssue
impl RefUnwindSafe for ValidationIssue
impl Send for ValidationIssue
impl Sync for ValidationIssue
impl Unpin for ValidationIssue
impl UnsafeUnpin for ValidationIssue
impl UnwindSafe for ValidationIssue
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more