pub struct GateResult {
pub passed: bool,
pub rule_results: Vec<RuleResult>,
pub errors: usize,
pub warnings: usize,
}Expand description
Result of evaluating the entire policy.
Fields§
§passed: boolOverall pass/fail.
rule_results: Vec<RuleResult>Individual rule results.
errors: usizeCount of errors.
warnings: usizeCount of warnings.
Implementations§
Source§impl GateResult
impl GateResult
Sourcepub fn from_results(rule_results: Vec<RuleResult>) -> Self
pub fn from_results(rule_results: Vec<RuleResult>) -> Self
Create a new gate result from rule results.
Trait Implementations§
Source§impl Clone for GateResult
impl Clone for GateResult
Source§fn clone(&self) -> GateResult
fn clone(&self) -> GateResult
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 GateResult
impl Debug for GateResult
Source§impl<'de> Deserialize<'de> for GateResult
impl<'de> Deserialize<'de> for GateResult
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 GateResult
impl RefUnwindSafe for GateResult
impl Send for GateResult
impl Sync for GateResult
impl Unpin for GateResult
impl UnsafeUnpin for GateResult
impl UnwindSafe for GateResult
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