pub struct ValidationFinding {
pub severity: String,
pub rule: String,
pub entity: Option<u64>,
pub attribute_index: Option<usize>,
pub attribute_name: Option<String>,
pub path: String,
pub message: String,
}Expand description
One finding: what is wrong, and where.
Fields§
§severity: Stringerror, evaluation-error, warning, indeterminate or
unsupported, as the validator spells them. error and
evaluation-error make a file non-conformant; indeterminate is an
EXPRESS rule that evaluated to UNKNOWN; unsupported is a rule this
validator does not check.
rule: StringStable id of the check, e.g. structure.reference.dangling.
entity: Option<u64>The entity the finding is about; None for the file as a whole.
attribute_index: Option<usize>The zero-based attribute slot, when the finding is about one.
attribute_name: Option<String>The attribute’s schema name, when the schema declares one.
path: StringThe location as text: <file>, #12 or #12.Name.
message: StringWhat is wrong, in one sentence.
Trait Implementations§
Source§impl Clone for ValidationFinding
impl Clone for ValidationFinding
Source§fn clone(&self) -> ValidationFinding
fn clone(&self) -> ValidationFinding
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 ValidationFinding
impl Debug for ValidationFinding
impl Eq for ValidationFinding
Source§impl PartialEq for ValidationFinding
impl PartialEq for ValidationFinding
impl StructuralPartialEq for ValidationFinding
Auto Trait Implementations§
impl Freeze for ValidationFinding
impl RefUnwindSafe for ValidationFinding
impl Send for ValidationFinding
impl Sync for ValidationFinding
impl Unpin for ValidationFinding
impl UnsafeUnpin for ValidationFinding
impl UnwindSafe for ValidationFinding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.