pub enum CoverageStrength {
Uncovered,
Observed,
Weak,
Covered,
}Expand description
How well a criterion is carried by the plan: whether work exists for it, whether that work is gated by evidence, and whether the recorded gap already saw it true.
use majordomus_cli::intent_plan::CoverageStrength;
// the wire spelling every surface answers with
assert_eq!(serde_json::to_string(&CoverageStrength::Weak).unwrap(), "\"weak\"");
// the order is the one a reader ranks by: uncovered is the worst
assert!(CoverageStrength::Uncovered < CoverageStrength::Covered);Variants§
Uncovered
No live issue serves it.
Observed
No live issue serves it, and none needs to: the recorded gap observed it already true. Whether it is met is still the evidence’s question, never this one’s.
Weak
Every live issue serving it requires no evidence, so nothing gates its completion.
Covered
At least one live issue serving it requires evidence before it is DONE.
Trait Implementations§
Source§impl Clone for CoverageStrength
impl Clone for CoverageStrength
Source§fn clone(&self) -> CoverageStrength
fn clone(&self) -> CoverageStrength
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 moreimpl Copy for CoverageStrength
Source§impl Debug for CoverageStrength
impl Debug for CoverageStrength
Source§impl<'de> Deserialize<'de> for CoverageStrength
impl<'de> Deserialize<'de> for CoverageStrength
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
impl Eq for CoverageStrength
Source§impl JsonSchema for CoverageStrength
impl JsonSchema for CoverageStrength
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for CoverageStrength
impl Ord for CoverageStrength
Source§fn cmp(&self, other: &CoverageStrength) -> Ordering
fn cmp(&self, other: &CoverageStrength) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CoverageStrength
impl PartialEq for CoverageStrength
Source§fn eq(&self, other: &CoverageStrength) -> bool
fn eq(&self, other: &CoverageStrength) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CoverageStrength
impl PartialOrd for CoverageStrength
Source§impl Serialize for CoverageStrength
impl Serialize for CoverageStrength
impl StructuralPartialEq for CoverageStrength
Auto Trait Implementations§
impl Freeze for CoverageStrength
impl RefUnwindSafe for CoverageStrength
impl Send for CoverageStrength
impl Sync for CoverageStrength
impl Unpin for CoverageStrength
impl UnsafeUnpin for CoverageStrength
impl UnwindSafe for CoverageStrength
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.