pub struct MaturityRecord {
pub element: String,
pub evidence: Vec<Evidence>,
}Expand description
One element’s conformance evidence, from which its MaturityLevel is derived.
There is deliberately no way to set the level directly.
Fields§
§element: StringThe element’s name (its registry / log category).
evidence: Vec<Evidence>Every passed check.
Implementations§
Source§impl MaturityRecord
impl MaturityRecord
Sourcepub fn new(element: impl Into<String>) -> Self
pub fn new(element: impl Into<String>) -> Self
A record for element with no evidence yet (maturity Unverified).
Sourcepub fn has(&self, dimension: ConformanceDimension) -> bool
pub fn has(&self, dimension: ConformanceDimension) -> bool
Whether any evidence covers dimension.
Sourcepub fn dimensions(&self) -> Vec<ConformanceDimension>
pub fn dimensions(&self) -> Vec<ConformanceDimension>
The distinct dimensions with evidence, in reporting order.
Sourcepub fn peers(&self) -> Vec<&str>
pub fn peers(&self) -> Vec<&str>
The distinct external peers this element was validated against.
Sourcepub fn level(&self) -> MaturityLevel
pub fn level(&self) -> MaturityLevel
The derived headline maturity. Oracle counts only with a named peer and
Hardware only with a named platform, so the level never overstates what the
evidence supports.
Trait Implementations§
Source§impl Clone for MaturityRecord
impl Clone for MaturityRecord
Source§fn clone(&self) -> MaturityRecord
fn clone(&self) -> MaturityRecord
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 MaturityRecord
impl Debug for MaturityRecord
impl Eq for MaturityRecord
Source§impl PartialEq for MaturityRecord
impl PartialEq for MaturityRecord
impl StructuralPartialEq for MaturityRecord
Auto Trait Implementations§
impl Freeze for MaturityRecord
impl RefUnwindSafe for MaturityRecord
impl Send for MaturityRecord
impl Sync for MaturityRecord
impl Unpin for MaturityRecord
impl UnsafeUnpin for MaturityRecord
impl UnwindSafe for MaturityRecord
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