pub enum Warning {
UnreachableState(String),
DeadEndState(String),
NoFinalStates,
UnusedGuard(String),
TransitionTriggerWithoutStateMachine(String),
DuplicateRelationship(String),
ManyToManyWithForeignKey {
relationship: String,
},
ConflictingIntentHints {
intent: String,
},
MultiplePrimaryIntentHints,
}Expand description
Structural warnings from service and state machine validation.
Warnings indicate potential issues that may be intentional (e.g., unreachable states reached via external means).
Variants§
UnreachableState(String)
A state not reachable from the initial state via transitions.
DeadEndState(String)
A non-final state with no outgoing transitions.
NoFinalStates
No states are marked as final.
UnusedGuard(String)
A guard declared but never referenced by any transition or action precondition.
TransitionTriggerWithoutStateMachine(String)
An action has a transition_trigger but the service has no state machine.
DuplicateRelationship(String)
Multiple relationships share the same name within a service.
ManyToManyWithForeignKey
A many-to-many relationship has a foreign_key set (join tables have no single FK).
ConflictingIntentHints
Primary(X) and Exclude(X) for the same intent.
MultiplePrimaryIntentHints
More than one Primary hint specified.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Warning
impl<'de> Deserialize<'de> for Warning
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
Source§impl JsonSchema for Warning
impl JsonSchema for Warning
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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