pub struct Relationship {
pub strength: f64,
pub trust: f64,
pub interactions: u64,
pub last_interaction: u64,
pub relationship_type: RelationshipType,
}
Expand description
Relationship with another organism
Fieldsยง
ยงstrength: f64
Relationship strength (0.0-1.0)
trust: f64
Trust level (0.0-1.0)
interactions: u64
Number of interactions
last_interaction: u64
Last interaction time
relationship_type: RelationshipType
Relationship type
Trait Implementationsยง
Sourceยงimpl Clone for Relationship
impl Clone for Relationship
Sourceยงfn clone(&self) -> Relationship
fn clone(&self) -> Relationship
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 Relationship
impl Debug for Relationship
Sourceยงimpl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
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 Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
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