pub struct EvolutionEvent {
pub event_id: String,
pub organism_id: String,
pub cycle: u64,
pub mutation: Mutation,
pub fitness_before: f64,
pub fitness_after: f64,
pub selection_pressure: f64,
pub timestamp: u64,
pub outcome: EvolutionOutcome,
}
Expand description
Evolution event record
Fieldsยง
ยงevent_id: String
Event ID
organism_id: String
Organism that evolved
cycle: u64
Evolution cycle when event occurred
mutation: Mutation
Mutation applied
fitness_before: f64
Fitness before evolution
fitness_after: f64
Fitness after evolution
selection_pressure: f64
Selection pressure applied
timestamp: u64
Timestamp
outcome: EvolutionOutcome
Evolution outcome
Trait Implementationsยง
Sourceยงimpl Clone for EvolutionEvent
impl Clone for EvolutionEvent
Sourceยงfn clone(&self) -> EvolutionEvent
fn clone(&self) -> EvolutionEvent
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 EvolutionEvent
impl Debug for EvolutionEvent
Sourceยงimpl<'de> Deserialize<'de> for EvolutionEvent
impl<'de> Deserialize<'de> for EvolutionEvent
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 EvolutionEvent
impl RefUnwindSafe for EvolutionEvent
impl Send for EvolutionEvent
impl Sync for EvolutionEvent
impl Unpin for EvolutionEvent
impl UnwindSafe for EvolutionEvent
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