cargo-aprz-lib 0.2.0

Internal library for cargo-aprz
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// The outcome of evaluating a crate against policy expressions.
#[derive(Debug, Clone)]
pub struct EvaluationOutcome {
    pub accepted: bool,
    pub reasons: Vec<String>,
}

impl EvaluationOutcome {
    #[must_use]
    pub const fn new(accepted: bool, reasons: Vec<String>) -> Self {
        Self { accepted, reasons }
    }
}