commitlint_rs/result.rs
1use crate::rule::Level;
2
3/// Result of the check.
4#[derive(Clone, Debug)]
5pub struct Result {
6 /// List of violations to be printed.
7 /// If it is empty, then there is no violation.
8 pub violations: Vec<Violation>,
9}
10
11/// Violation is a message that will be printed.
12#[derive(Clone, Debug)]
13pub struct Violation {
14 /// Level of the violation.
15 pub level: Level,
16
17 /// Message of the violation.
18 pub message: String,
19}