pub struct Diagnosis {
pub moments: Vec<String>,
pub unresolved: Vec<String>,
pub areas: Vec<Recommendation>,
pub audiences: Vec<Recommendation>,
pub capabilities: Vec<Recommendation>,
pub commands: Vec<Recommendation>,
pub claims: Vec<Recommendation>,
pub doctrines: Vec<Recommendation>,
pub use_cases: Vec<Recommendation>,
pub also_worth_reading: Vec<String>,
}Expand description
What a reader’s selection implies, computed by counting rather than by inference.
The arithmetic is the whole model and is stated so a reader can check it: a selection resolves to a set of moments; an area or an audience scores the number of selected moments that name it; a recommendation scores the number that name it and carries their ids. There is no weighting and no percentage, because there is no model behind one.
Fields§
§moments: Vec<String>The moments the selection resolved to, in presentation order.
unresolved: Vec<String>Selected names that resolved to nothing.
areas: Vec<Recommendation>Operational areas by how many selected moments fall under them, heaviest first.
audiences: Vec<Recommendation>Audiences by how many selected moments they recognise, heaviest first.
capabilities: Vec<Recommendation>Capabilities of the executable that answer the selected moments.
commands: Vec<Recommendation>Commands that answer them.
claims: Vec<Recommendation>Claims that say what is guaranteed.
doctrines: Vec<Recommendation>Rules of the effective set that govern them.
use_cases: Vec<Recommendation>Use cases that show the way out.
also_worth_reading: Vec<String>Moments the selection did not include that share an area with one that it did.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Diagnosis
impl<'de> Deserialize<'de> for Diagnosis
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>,
impl Eq for Diagnosis
Source§impl JsonSchema for Diagnosis
impl JsonSchema for Diagnosis
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Diagnosis
Auto Trait Implementations§
impl Freeze for Diagnosis
impl RefUnwindSafe for Diagnosis
impl Send for Diagnosis
impl Sync for Diagnosis
impl Unpin for Diagnosis
impl UnsafeUnpin for Diagnosis
impl UnwindSafe for Diagnosis
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
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
key and return true if they are equal.