pub struct AnatomyOrganMeta {
pub system: String,
pub label: String,
pub systems: Vec<String>,
pub position: [f32; 3],
pub rgba: [f32; 4],
}Expand description
Per-organ render metadata carried in a .hmc anatomy-pack entry’s meta.
Fields§
§system: StringThe organ’s primary body-system id (its default colour/placement),
e.g. "digestive". An organ is a building block shared across systems;
see AnatomyOrganMeta::systems for the full set.
label: StringHuman-readable name of this part (e.g. "diaphragm", "liver"), for a selectable parts list.
Empty/absent in older packs → the consumer falls back to the entry key (#[serde(default)]).
systems: Vec<String>All body systems the organ participates in, primary first (the pancreas
is ["digestive", "endocrine", "exocrine"]). Lets the renderer colour by the
primary system or blend across memberships, and lets a person’s condition on
any member system light the organ. Empty/absent in older packs → treat as
[system] (back-compatible; #[serde(default)]).
position: [f32; 3]Approximate anatomical position offset in normalised body space
[x, y, z] (0..1; x=right, y=up, z=front). Approximate placement — a
future pass can substitute real CCF transforms.
rgba: [f32; 4]Neutral default linear RGBA for the organ (overridden by the person’s σ-derived burden colour at runtime when their data is present).
Implementations§
Trait Implementations§
Source§impl Clone for AnatomyOrganMeta
impl Clone for AnatomyOrganMeta
Source§fn clone(&self) -> AnatomyOrganMeta
fn clone(&self) -> AnatomyOrganMeta
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 AnatomyOrganMeta
impl Debug for AnatomyOrganMeta
Source§impl<'de> Deserialize<'de> for AnatomyOrganMeta
impl<'de> Deserialize<'de> for AnatomyOrganMeta
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 AnatomyOrganMeta
impl PartialEq for AnatomyOrganMeta
Source§fn eq(&self, other: &AnatomyOrganMeta) -> bool
fn eq(&self, other: &AnatomyOrganMeta) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AnatomyOrganMeta
impl Serialize for AnatomyOrganMeta
impl StructuralPartialEq for AnatomyOrganMeta
Auto Trait Implementations§
impl Freeze for AnatomyOrganMeta
impl RefUnwindSafe for AnatomyOrganMeta
impl Send for AnatomyOrganMeta
impl Sync for AnatomyOrganMeta
impl Unpin for AnatomyOrganMeta
impl UnsafeUnpin for AnatomyOrganMeta
impl UnwindSafe for AnatomyOrganMeta
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>,
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<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