pub struct DomainCounts {
pub features: usize,
pub claims: usize,
pub tested: usize,
pub use_cases: usize,
pub rules: usize,
pub enforced_rules: usize,
pub capabilities: usize,
pub moments: usize,
}Expand description
How much stands behind a domain: sums and distinct counts over its stable features.
use majordomus_cli::product::DomainCounts;
let empty = DomainCounts::default();
assert_eq!(empty.features, 0);
let v = serde_json::to_value(&empty).unwrap();
for key in ["features", "claims", "tested", "use_cases", "rules", "enforced_rules", "capabilities", "moments"] {
assert_eq!(v[key], 0, "{key} is published, and zero for a domain nothing names");
}Fields§
§features: usizeStable features filed under it.
claims: usizeDistinct claims its features name.
tested: usizeDistinct claims that are guaranteed and name the test that settles them: what the claims declare, not whether a recorded run supports them (that verdict is the evidence ledger’s).
use_cases: usizeDistinct use cases its features name.
rules: usizeDistinct rules its features name.
enforced_rules: usizeDistinct rules among them the tool enforces.
capabilities: usizeDistinct capabilities behind its features.
moments: usizeDistinct operational moments its features answer.
Trait Implementations§
Source§impl Clone for DomainCounts
impl Clone for DomainCounts
Source§fn clone(&self) -> DomainCounts
fn clone(&self) -> DomainCounts
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 DomainCounts
impl Debug for DomainCounts
Source§impl Default for DomainCounts
impl Default for DomainCounts
Source§fn default() -> DomainCounts
fn default() -> DomainCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DomainCounts
impl<'de> Deserialize<'de> for DomainCounts
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 DomainCounts
Source§impl JsonSchema for DomainCounts
impl JsonSchema for DomainCounts
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 PartialEq for DomainCounts
impl PartialEq for DomainCounts
Source§fn eq(&self, other: &DomainCounts) -> bool
fn eq(&self, other: &DomainCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DomainCounts
impl Serialize for DomainCounts
impl StructuralPartialEq for DomainCounts
Auto Trait Implementations§
impl Freeze for DomainCounts
impl RefUnwindSafe for DomainCounts
impl Send for DomainCounts
impl Sync for DomainCounts
impl Unpin for DomainCounts
impl UnsafeUnpin for DomainCounts
impl UnwindSafe for DomainCounts
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<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.