#[non_exhaustive]pub struct RuleViolation {
pub entity: EntityId,
pub type_name: String,
pub rule: &'static str,
pub kind: ViolationKind,
pub detail: String,
}Expand description
One broken WHERE rule.
Carries the schema’s own rule name (AxisToRefDirPosition), not a
paraphrase, so a user can look it up in the IFC documentation. That is the
difference between a diagnostic someone can act on and one they can only
report.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity: EntityIdThe entity that violates the rule.
type_name: StringIts IFC type, e.g. IFCAXIS2PLACEMENT3D.
rule: &'static strThe rule’s name in the EXPRESS schema.
kind: ViolationKindThe class of problem.
detail: StringWhat specifically went wrong.
Implementations§
Trait Implementations§
Source§impl Clone for RuleViolation
impl Clone for RuleViolation
Source§fn clone(&self) -> RuleViolation
fn clone(&self) -> RuleViolation
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 moreSource§impl Debug for RuleViolation
impl Debug for RuleViolation
Source§impl Display for RuleViolation
impl Display for RuleViolation
impl Eq for RuleViolation
Source§impl PartialEq for RuleViolation
impl PartialEq for RuleViolation
impl StructuralPartialEq for RuleViolation
Auto Trait Implementations§
impl Freeze for RuleViolation
impl RefUnwindSafe for RuleViolation
impl Send for RuleViolation
impl Sync for RuleViolation
impl Unpin for RuleViolation
impl UnsafeUnpin for RuleViolation
impl UnwindSafe for RuleViolation
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