pub enum ValidationError {
DanglingReference {
source_id: String,
target_id: String,
context: String,
},
TemporalViolation {
entity_id: String,
event_id: String,
description: String,
},
StateViolation {
entity_id: String,
event_id: String,
description: String,
},
}Expand description
A hard validation error indicating inconsistent world data.
Variants§
DanglingReference
A reference from one entity to another that does not exist in the graph.
Fields
TemporalViolation
A temporal impossibility detected via Allen’s Interval Algebra — for example, an event occurring before a participant’s lifespan or after a cause.
Fields
StateViolation
An entity is used in an event despite having a terminal status
(e.g. Dead, Destroyed) from a strictly earlier event.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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