pub struct ValidationMessage {
pub severity: Severity,
pub code: String,
pub message: String,
pub concept_name: Option<String>,
pub context_ref: Option<String>,
}Expand description
A single validation finding.
Fields§
§severity: SeverityError or Warning.
code: StringMachine-readable rule identifier (e.g., “schema.concept_not_found”).
message: StringHuman-readable explanation.
concept_name: Option<String>The concept name of the fact that triggered this, if applicable.
context_ref: Option<String>The context ref of the fact that triggered this, if applicable.
Trait Implementations§
Source§impl Clone for ValidationMessage
impl Clone for ValidationMessage
Source§fn clone(&self) -> ValidationMessage
fn clone(&self) -> ValidationMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidationMessage
impl RefUnwindSafe for ValidationMessage
impl Send for ValidationMessage
impl Sync for ValidationMessage
impl Unpin for ValidationMessage
impl UnsafeUnpin for ValidationMessage
impl UnwindSafe for ValidationMessage
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