pub struct GenomeEvaluation {
pub schema_version: u32,
pub evaluation_id: EvaluationId,
pub genome_hash: ContentHash,
pub key: ComparabilityKey,
pub scorecard_ids: Vec<ScorecardId>,
pub fitness: FitnessOutcome,
pub lineage: Lineage,
pub pinned_connectome: Option<ConnectomeHash>,
}Expand description
One evaluated individual (ADR-016).
Fields§
§schema_version: u32Wire/format version; must equal SCHEMA_VERSION.
evaluation_id: EvaluationIdIdentity of this record.
genome_hash: ContentHashContent hash of the genome snapshot taken at protocol start.
key: ComparabilityKeyComparability key.
scorecard_ids: Vec<ScorecardId>Scorecards produced by the protocol’s phases.
fitness: FitnessOutcomeFitness outcome on key.fitness.split_id.
lineage: LineageGenome-only ancestry.
pinned_connectome: Option<ConnectomeHash>Starting connectome, present only when the operator pinned this run.
Implementations§
Source§impl GenomeEvaluation
impl GenomeEvaluation
Sourcepub fn selectable_fitness(&self) -> Option<&FitnessEstimate>
pub fn selectable_fitness(&self) -> Option<&FitnessEstimate>
Returns the fitness estimate when this individual may take part in selection.
Only fully scored evaluations are selectable; NoFitnessSplit and Incomplete
records stay in history but are not plotted as fitness points or used as parents.
Sourcepub fn validate(&self) -> Result<(), EvaluationError>
pub fn validate(&self) -> Result<(), EvaluationError>
Checks every contract invariant; hosts call this before storing a record.
§Errors
Returns the first EvaluationError found.
Trait Implementations§
Source§impl Clone for GenomeEvaluation
impl Clone for GenomeEvaluation
Source§impl Debug for GenomeEvaluation
impl Debug for GenomeEvaluation
Source§impl<'de> Deserialize<'de> for GenomeEvaluation
impl<'de> Deserialize<'de> for GenomeEvaluation
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
Source§impl PartialEq for GenomeEvaluation
impl PartialEq for GenomeEvaluation
Source§impl Serialize for GenomeEvaluation
impl Serialize for GenomeEvaluation
impl StructuralPartialEq for GenomeEvaluation
Auto Trait Implementations§
impl Freeze for GenomeEvaluation
impl RefUnwindSafe for GenomeEvaluation
impl Send for GenomeEvaluation
impl Sync for GenomeEvaluation
impl Unpin for GenomeEvaluation
impl UnsafeUnpin for GenomeEvaluation
impl UnwindSafe for GenomeEvaluation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more