pub struct FamilyRelation {
pub relation_type: FamilyType,
pub genetic_similarity: f64,
pub bond_strength: f64,
}
Expand description
Family relationships
Fieldsยง
ยงrelation_type: FamilyType
Type of family relationship
genetic_similarity: f64
Genetic similarity
bond_strength: f64
Emotional bond strength
Trait Implementationsยง
Sourceยงimpl Clone for FamilyRelation
impl Clone for FamilyRelation
Sourceยงfn clone(&self) -> FamilyRelation
fn clone(&self) -> FamilyRelation
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for FamilyRelation
impl Debug for FamilyRelation
Sourceยงimpl<'de> Deserialize<'de> for FamilyRelation
impl<'de> Deserialize<'de> for FamilyRelation
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
Auto Trait Implementationsยง
impl Freeze for FamilyRelation
impl RefUnwindSafe for FamilyRelation
impl Send for FamilyRelation
impl Sync for FamilyRelation
impl Unpin for FamilyRelation
impl UnwindSafe for FamilyRelation
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