pub struct ValidationDiagnostic {
pub rule: ValidationRule,
pub node_id: Option<NodeId>,
pub message: String,
}Expand description
A single validation diagnostic.
Fields§
§rule: ValidationRuleWhich validation rule was violated.
node_id: Option<NodeId>The node that caused the error, if applicable.
message: StringHuman-readable description of the error.
Trait Implementations§
Source§impl Clone for ValidationDiagnostic
impl Clone for ValidationDiagnostic
Source§fn clone(&self) -> ValidationDiagnostic
fn clone(&self) -> ValidationDiagnostic
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 moreSource§impl Debug for ValidationDiagnostic
impl Debug for ValidationDiagnostic
Source§impl<'de> Deserialize<'de> for ValidationDiagnostic
impl<'de> Deserialize<'de> for ValidationDiagnostic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ValidationDiagnostic
impl RefUnwindSafe for ValidationDiagnostic
impl Send for ValidationDiagnostic
impl Sync for ValidationDiagnostic
impl Unpin for ValidationDiagnostic
impl UnsafeUnpin for ValidationDiagnostic
impl UnwindSafe for ValidationDiagnostic
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