commitlint_rs/
result.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::rule::Level;

/// Result of the check.
#[derive(Clone, Debug)]
pub struct Result {
    /// List of violations to be printed.
    /// If it is empty, then there is no violation.
    pub violations: Vec<Violation>,
}

/// Violation is a message that will be printed.
#[derive(Clone, Debug)]
pub struct Violation {
    /// Level of the violation.
    pub level: Level,

    /// Message of the violation.
    pub message: String,
}