pub struct FitRunReportV1 {Show 19 fields
pub receipt_id: ArtifactId,
pub kind: ArtifactKindV1,
pub mechanism_id: ArtifactId,
pub theory_id: Option<ArtifactId>,
pub simulator_contract_id: Option<ArtifactId>,
pub dataset_digest: DisplayDigestV1,
pub parameter_digest: DisplayDigestV1,
pub output_digest: DisplayDigestV1,
pub outcome: FitRunOutcomeV1,
pub objective: String,
pub score: Option<f64>,
pub score_is_verification: bool,
pub seed: Option<u64>,
pub replay_command: Vec<String>,
pub run_id: Option<ArtifactId>,
pub attempt_id: Option<ArtifactId>,
pub source_receipt_ids: Vec<ArtifactId>,
pub reason_codes: Vec<String>,
pub fitted_at: DateTime<Utc>,
}Fields§
§receipt_id: ArtifactId§kind: ArtifactKindV1§mechanism_id: ArtifactId§theory_id: Option<ArtifactId>§simulator_contract_id: Option<ArtifactId>§dataset_digest: DisplayDigestV1§parameter_digest: DisplayDigestV1§output_digest: DisplayDigestV1§outcome: FitRunOutcomeV1§objective: String§score: Option<f64>§score_is_verification: bool§seed: Option<u64>§replay_command: Vec<String>§run_id: Option<ArtifactId>§attempt_id: Option<ArtifactId>§source_receipt_ids: Vec<ArtifactId>§reason_codes: Vec<String>§fitted_at: DateTime<Utc>Implementations§
Source§impl FitRunReportV1
impl FitRunReportV1
pub fn new( mechanism_id: ArtifactId, simulator_contract_id: Option<ArtifactId>, dataset: Value, parameters: Value, output: Value, objective: impl Into<String>, score: Option<f64>, ) -> Self
pub fn for_theory(self, theory_id: ArtifactId) -> Self
pub fn with_execution_context(self, context: &AidensRunContextV1) -> Self
pub fn with_seed(self, seed: u64) -> Self
pub fn with_replay_command(self, replay_command: Vec<String>) -> Self
pub fn with_source_receipts(self, source_receipt_ids: Vec<ArtifactId>) -> Self
pub fn failed(self, reason: impl Into<String>) -> Self
pub fn is_replayable(&self) -> bool
Trait Implementations§
Source§impl Clone for FitRunReportV1
impl Clone for FitRunReportV1
Source§fn clone(&self) -> FitRunReportV1
fn clone(&self) -> FitRunReportV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FitRunReportV1
impl Debug for FitRunReportV1
Source§impl<'de> Deserialize<'de> for FitRunReportV1
impl<'de> Deserialize<'de> for FitRunReportV1
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 JsonSchema for FitRunReportV1
impl JsonSchema for FitRunReportV1
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FitRunReportV1
impl PartialEq for FitRunReportV1
Source§fn eq(&self, other: &FitRunReportV1) -> bool
fn eq(&self, other: &FitRunReportV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FitRunReportV1
impl Serialize for FitRunReportV1
impl StructuralPartialEq for FitRunReportV1
Auto Trait Implementations§
impl Freeze for FitRunReportV1
impl RefUnwindSafe for FitRunReportV1
impl Send for FitRunReportV1
impl Sync for FitRunReportV1
impl Unpin for FitRunReportV1
impl UnsafeUnpin for FitRunReportV1
impl UnwindSafe for FitRunReportV1
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