Skip to main content

MaternalFetalDyad

Struct MaternalFetalDyad 

Source
pub struct MaternalFetalDyad {
    pub maternal: MaternalBody,
    pub child: EmergingChild,
    pub gestational_age_days: u32,
    pub carnegie_stage: Option<u32>,
    pub interface: InterfaceKind,
    pub social_rights_threshold: SocialRightsThreshold,
}
Expand description

The dyad: two coupled principals joined by the interface. Sanctuary-class, forum-internum data.

Fields§

§maternal: MaternalBody§child: EmergingChild§gestational_age_days: u32

Gestational age in days. Convention is the caller’s to state: clinical gestational age is from the last menstrual period (LMP); the Carnegie/embryology assets are indexed postfertilization (~14 days earlier). Precise stage↔age↔trimester alignment is clinical content (§9), not asserted.

§carnegie_stage: Option<u32>§interface: InterfaceKind§social_rights_threshold: SocialRightsThreshold

The (deferred) values setting for when a born child’s social rights accrue.

Implementations§

Source§

impl MaternalFetalDyad

Source

pub fn give_birth( &self, biometrics: Vec<BiometricClass>, credentials: Vec<CredentialRef>, credentialed_guardians: Vec<PrincipalRef>, issued_by: Option<PrincipalRef>, birth_date: Option<String>, ) -> Result<DigitalBirthRecord, DyadInvalid>

Resolve the gestational dyad into a DigitalBirthRecord at birth. The emerging child becomes the born subject (owner of the record) at AgencyStage::Neonate; the guardianship commons defaults to the known biological parents (each a Steward via StewardBasis::BiologicalDefault), subject to credentials + credentialed_guardians (an adoption/surrogacy order or a guardianship grant — those become the stewards via StewardBasis::Credentialed, overriding the biological default). Each default steward is assigned the general StewardRole::Guardian; splitting roles across different stewards is a later, legal/curation act. Only valid from a valid dyad.

Source§

impl MaternalFetalDyad

Source

pub const fn forum_class(&self) -> ForumClass

A dyad’s data is always forum internum (a person’s — and an emerging person’s — inward domain).

Source

pub const fn sensitivity_class(&self) -> &'static str

Always the most-restrictive sensitivity class (Sanctuary), returned as the ladder’s canonical name so the storage layer maps it without this pure crate depending on the sensitivity enum. The high-water-mark rule makes anything derived from a dyad inherit this.

Source

pub fn guardian(&self) -> &PrincipalRef

The guardian during gestation — the gestational mother. Guardianship is a scoped, revocable role, not ownership; whether/when it transfers post-birth (e.g. to intended parents in surrogacy) is a deferred values decision (§9.4).

Source

pub fn trimester(&self) -> Option<Trimester>

The maternal trimester, if the mother is in a pregnant state.

Source

pub fn validate(&self) -> Result<(), DyadInvalid>

Enforce the non-negotiable rights + possibility invariants.

Source

pub fn considerations(&self) -> Vec<DyadConsideration>

The structural / rights / science considerations for a valid dyad — proposals, never determinations. These are the honest, non-medical statements the model can make; the cross-body physiological correlations are curation-grade and pointedly not seeded (their absence is deliberate, not a gap).

Trait Implementations§

Source§

impl Clone for MaternalFetalDyad

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MaternalFetalDyad

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MaternalFetalDyad

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for MaternalFetalDyad

Source§

impl PartialEq for MaternalFetalDyad

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for MaternalFetalDyad

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MaternalFetalDyad

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.