pub enum Progenitor {
Known(PrincipalRef),
Donor,
Unknown,
}Expand description
A genetic progenitor — one gamete source. There are two per emerging entity (ovum + sperm). A progenitor may be a known principal, a donor (identity withheld/pseudonymous by arrangement — possibly resolvable later for the child’s right to know their origins, a governance policy not asserted here), or simply unknown/unrecorded (a father may not be known, or not know).
Variants§
Implementations§
Source§impl Progenitor
impl Progenitor
Sourcepub fn known(&self) -> Option<&PrincipalRef>
pub fn known(&self) -> Option<&PrincipalRef>
The known principal, if this progenitor is a known party.
Trait Implementations§
Source§impl Clone for Progenitor
impl Clone for Progenitor
Source§impl Debug for Progenitor
impl Debug for Progenitor
Source§impl<'de> Deserialize<'de> for Progenitor
impl<'de> Deserialize<'de> for Progenitor
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 Progenitor
Source§impl PartialEq for Progenitor
impl PartialEq for Progenitor
Source§impl Serialize for Progenitor
impl Serialize for Progenitor
impl StructuralPartialEq for Progenitor
Auto Trait Implementations§
impl Freeze for Progenitor
impl RefUnwindSafe for Progenitor
impl Send for Progenitor
impl Sync for Progenitor
impl Unpin for Progenitor
impl UnsafeUnpin for Progenitor
impl UnwindSafe for Progenitor
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