pub struct AnatomyViewReport {
pub view: AnatomyView,
pub burdens: Vec<SystemBurden>,
pub unmapped: Vec<UnmappedRecord>,
pub mapped_count: usize,
pub total_records: usize,
pub disclosure: String,
}Expand description
The full report the host returns for one lens.
Fields§
§view: AnatomyViewThe lens-shaped narrative (person wellbeing gist / clinician considerations).
burdens: Vec<SystemBurden>Per-system burden, lens-independent — drives colour-by-load (S5).
unmapped: Vec<UnmappedRecord>Records with no knowledge mapping yet.
mapped_count: usizeHow many records resolved to a factor.
total_records: usizeHow many records were considered in total.
disclosure: StringHonest note on provenance/limits for the UI to show.
Implementations§
Source§impl AnatomyViewReport
impl AnatomyViewReport
Sourcepub fn system_percepts(&self) -> Vec<SystemPercept>
pub fn system_percepts(&self) -> Vec<SystemPercept>
The per-system dual-modality percepts. For each accumulated burden, encode net_milli → σ once
(burden_to_sigma), then derive the visual colour (render::spectral) and the sonic pitch
(render::acoustic) from that single σ — the modality-first parity that lets the same anatomy
state be rendered to sight or sound without re-deciding what it “means”.
Sourcepub fn paint_organs(
&self,
organ_keys: &[&str],
) -> (Vec<OrganPercept>, Vec<String>)
pub fn paint_organs( &self, organ_keys: &[&str], ) -> (Vec<OrganPercept>, Vec<String>)
Resolve the dual-modality paint for a set of organ meshes — the organs of the selected anatomy
model (chosen from the user’s XY/XX basis via Karyotype::anatomy_model; the model’s file set is
supplied by the loader). Each organ’s body system is looked up (body_system_for_organ), then
that system’s percept. An organ on a system with no recorded burden gets the settled baseline
(calm green / higher pitch) so the whole body still renders; an organ not in the curated
organ→system map is returned in the second list — reported, never silently coloured.
Sourcepub fn overlay_percepts(&self) -> Vec<OverlayPercept>
pub fn overlay_percepts(&self) -> Vec<OverlayPercept>
The distributed-overlay systems’ percepts (ECS / ENS / glymphatic) — the systems that have no
standalone organ mesh and so are omitted by [paint_organs]. Each is rendered as a highlight
over its host structures (see host_systems; empty = a whole-body cue). Together,
paint_organs (discrete organs) + overlay_percepts (distributed networks) cover the whole
body state — so nothing that carries burden is silently unrepresented.
Trait Implementations§
Source§impl Clone for AnatomyViewReport
impl Clone for AnatomyViewReport
Source§fn clone(&self) -> AnatomyViewReport
fn clone(&self) -> AnatomyViewReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnatomyViewReport
impl Debug for AnatomyViewReport
Source§impl<'de> Deserialize<'de> for AnatomyViewReport
impl<'de> Deserialize<'de> for AnatomyViewReport
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>,
Source§impl PartialEq for AnatomyViewReport
impl PartialEq for AnatomyViewReport
Source§fn eq(&self, other: &AnatomyViewReport) -> bool
fn eq(&self, other: &AnatomyViewReport) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AnatomyViewReport
impl Serialize for AnatomyViewReport
impl Eq for AnatomyViewReport
impl StructuralPartialEq for AnatomyViewReport
Auto Trait Implementations§
impl Freeze for AnatomyViewReport
impl RefUnwindSafe for AnatomyViewReport
impl Send for AnatomyViewReport
impl Sync for AnatomyViewReport
impl Unpin for AnatomyViewReport
impl UnsafeUnpin for AnatomyViewReport
impl UnwindSafe for AnatomyViewReport
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§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.§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
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more