pub enum DyadInvalid {
NotPregnant,
NoGestationalMother,
ChildIdentityCollapsed,
RightsStageMismatch,
ImplausibleGestationalAge,
}Expand description
A reason a dyad is structurally invalid — a rights violation or an impossibility.
Variants§
NotPregnant
The maternal state is not a pregnant state — a gestational dyad exists only in pregnancy.
NoGestationalMother
No gestational mother — she is the data-subject and the guardian; she must be present.
ChildIdentityCollapsed
The child’s identifier is empty or collapsed into an adult (identical to the gestational mother, a known genetic progenitor, or an intended parent). The core rights invariant: the child is its own emerging principal, never a field of an adult’s identity.
RightsStageMismatch
The child’s rights stage is not EmergingInGestation while the mother is pregnant (a born child is
not a gestational dyad).
ImplausibleGestationalAge
The gestational age is outside any plausible range (1..=300 days).
Trait Implementations§
Source§impl Clone for DyadInvalid
impl Clone for DyadInvalid
Source§impl Debug for DyadInvalid
impl Debug for DyadInvalid
Source§impl<'de> Deserialize<'de> for DyadInvalid
impl<'de> Deserialize<'de> for DyadInvalid
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 DyadInvalid
Source§impl PartialEq for DyadInvalid
impl PartialEq for DyadInvalid
Source§impl Serialize for DyadInvalid
impl Serialize for DyadInvalid
impl StructuralPartialEq for DyadInvalid
Auto Trait Implementations§
impl Freeze for DyadInvalid
impl RefUnwindSafe for DyadInvalid
impl Send for DyadInvalid
impl Sync for DyadInvalid
impl Unpin for DyadInvalid
impl UnsafeUnpin for DyadInvalid
impl UnwindSafe for DyadInvalid
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