pub struct ValidationContext {
pub entities: HashMap<String, EntityRef>,
pub catalogs: HashMap<String, CatalogRef>,
pub strict_mode: bool,
}Expand description
Context for validation operations
Contains references to entities, catalogs, and other global state needed for validating cross-references and constraints.
Fields§
§entities: HashMap<String, EntityRef>Registry of all entities in the scenario for reference validation
catalogs: HashMap<String, CatalogRef>Available catalog entries for catalog reference validation
strict_mode: boolValidation settings and options
Implementations§
Source§impl ValidationContext
impl ValidationContext
Sourcepub fn with_strict_mode(self) -> Self
pub fn with_strict_mode(self) -> Self
Enable strict validation mode
Sourcepub fn add_entity(&mut self, name: String, entity_ref: EntityRef)
pub fn add_entity(&mut self, name: String, entity_ref: EntityRef)
Add an entity to the validation registry
Trait Implementations§
Source§impl Debug for ValidationContext
impl Debug for ValidationContext
Source§impl Default for ValidationContext
impl Default for ValidationContext
Source§fn default() -> ValidationContext
fn default() -> ValidationContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationContext
impl RefUnwindSafe for ValidationContext
impl Send for ValidationContext
impl Sync for ValidationContext
impl Unpin for ValidationContext
impl UnsafeUnpin for ValidationContext
impl UnwindSafe for ValidationContext
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> 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