pub struct ConformanceVector {
pub admitted: Vec<LawAxis>,
pub refused: Vec<LawAxis>,
pub unknown: Vec<LawAxis>,
pub score: Option<f64>,
pub strict_mode: bool,
}Fields§
§admitted: Vec<LawAxis>Law axes that have been admitted (evidence present and valid)
refused: Vec<LawAxis>Law axes that have been explicitly refused (evidence present, violation confirmed)
unknown: Vec<LawAxis>Law axes where admissibility cannot be determined (NEVER collapsed into admitted or refused)
score: Option<f64>Derived score: 100 * admitted / (admitted + refused + unknown), None if all unknown
strict_mode: boolWhether unknown axes block release actuation
Implementations§
Source§impl ConformanceVector
impl ConformanceVector
pub fn all_admitted(&self) -> bool
pub fn admits_release(&self) -> bool
Trait Implementations§
Source§impl Clone for ConformanceVector
impl Clone for ConformanceVector
Source§fn clone(&self) -> ConformanceVector
fn clone(&self) -> ConformanceVector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConformanceVector
impl Debug for ConformanceVector
Source§impl Default for ConformanceVector
impl Default for ConformanceVector
Source§impl<'de> Deserialize<'de> for ConformanceVector
impl<'de> Deserialize<'de> for ConformanceVector
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 ConformanceVector
impl RefUnwindSafe for ConformanceVector
impl Send for ConformanceVector
impl Sync for ConformanceVector
impl Unpin for ConformanceVector
impl UnsafeUnpin for ConformanceVector
impl UnwindSafe for ConformanceVector
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