usecrate::rule::Level;/// Result of the check.
#[derive(Clone, Debug)]pubstructResult{/// List of violations to be printed.
/// If it is empty, then there is no violation.
pubviolations:Vec<Violation>,
}/// Violation is a message that will be printed.
#[derive(Clone, Debug)]pubstructViolation{/// Level of the violation.
publevel: Level,
/// Message of the violation.
pubmessage: String,
}