#[non_exhaustive]pub struct ValidateOptions<'a> {
pub budget: Budget,
pub express: Option<&'a ExpressRules>,
pub catalog: Option<&'a dyn PropertySetCatalog>,
pub inverse_cardinality: bool,
}Expand description
Everything a validation run may be given besides the model and its tables.
use ifc_validate::{validate_with_options, Budget, ValidateOptions};
let options = ValidateOptions::new().budget(Budget { max_findings: 100 });
let report = validate_with_options(model, ifc_schema::ifc4(), &options);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.budget: BudgetHow many findings to record.
express: Option<&'a ExpressRules>The release’s EXPRESS rules, read from its schema text. With them, every WHERE rule, type rule and global rule is evaluated, and the hand-written rules they cover are not run.
catalog: Option<&'a dyn PropertySetCatalog>The PSD/QTO catalog that Pset_ and Qto_ set names are checked
against.
inverse_cardinality: boolCheck every INVERSE clause’s cardinality
(structure.inverse.cardinality). Off unless asked for, or unless
EXPRESS rules are supplied: it is part of full EXPRESS conformance,
and IFC2X3’s PlacesObject : SET [1:1] alone turns many files that
share a placement between products non-conformant.
Implementations§
Source§impl<'a> ValidateOptions<'a>
impl<'a> ValidateOptions<'a>
Sourcepub fn express(self, rules: &'a ExpressRules) -> Self
pub fn express(self, rules: &'a ExpressRules) -> Self
These options evaluating rules, and checking INVERSE cardinality
with them.
Sourcepub fn inverse_cardinality(self, check: bool) -> Self
pub fn inverse_cardinality(self, check: bool) -> Self
These options with INVERSE cardinality checked, or not.
Sourcepub fn catalog(self, catalog: &'a dyn PropertySetCatalog) -> Self
pub fn catalog(self, catalog: &'a dyn PropertySetCatalog) -> Self
These options checking set names against catalog.
Trait Implementations§
Source§impl<'a> Clone for ValidateOptions<'a>
impl<'a> Clone for ValidateOptions<'a>
Source§fn clone(&self) -> ValidateOptions<'a>
fn clone(&self) -> ValidateOptions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more