pub struct CodeEvaluator {Show 18 fields
pub id: String,
pub name: String,
pub description: Option<String>,
pub created_by: Creator,
pub status: EvaluatorStatus,
pub paused_at: Option<Timestamp>,
pub paused_reason: Option<String>,
pub paused_message: Option<String>,
pub evaluation_rule_assignments: Vec<EvaluationRuleAssignment>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub version_id: String,
pub version: i64,
pub version_created_at: Timestamp,
pub version_created_by: Creator,
pub type: String,
pub source_code: String,
pub source_code_language: CodeEvaluatorSourceCodeLanguage,
}Fields§
§id: StringStable identifier of this evaluator across all versions.
name: StringHuman-readable evaluator name. Names are not identifiers and do not need to be unique.
description: Option<String>Optional human-readable evaluator description.
created_by: Creator§status: EvaluatorStatus§paused_at: Option<Timestamp>Timestamp when the evaluator was paused, otherwise null.
paused_reason: Option<String>Machine-readable reason when status=paused, otherwise null.
paused_message: Option<String>Human-readable explanation when status=paused, otherwise null.
evaluation_rule_assignments: Vec<EvaluationRuleAssignment>All modern and legacy evaluation-rule assignments in newest-assignment-first order. Rule-specific mappings are exposed as variableMappingOverride; inherited defaults are omitted.
created_at: TimestampTimestamp when the evaluator was created.
updated_at: TimestampTimestamp when the evaluator was last updated.
version_id: StringStable identifier of the latest evaluator version.
version: i64Monotonically increasing latest evaluator version number.
version_created_at: TimestampTimestamp when the latest evaluator version was created.
version_created_by: Creator§type: StringEvaluator type.
source_code: StringSource code executed by the latest evaluator version.
source_code_language: CodeEvaluatorSourceCodeLanguageImplementations§
Source§impl CodeEvaluator
impl CodeEvaluator
Sourcepub fn builder() -> CodeEvaluatorBuilder
pub fn builder() -> CodeEvaluatorBuilder
Create an instance of CodeEvaluator using the builder syntax
Source§impl CodeEvaluator
impl CodeEvaluator
pub fn new( id: String, name: String, description: Option<String>, created_by: Creator, status: EvaluatorStatus, paused_at: Option<Timestamp>, paused_reason: Option<String>, paused_message: Option<String>, evaluation_rule_assignments: Vec<EvaluationRuleAssignment>, created_at: Timestamp, updated_at: Timestamp, version_id: String, version: i64, version_created_at: Timestamp, version_created_by: Creator, type: String, source_code: String, source_code_language: CodeEvaluatorSourceCodeLanguage, ) -> CodeEvaluator
Trait Implementations§
Source§impl Clone for CodeEvaluator
impl Clone for CodeEvaluator
Source§impl Debug for CodeEvaluator
impl Debug for CodeEvaluator
Source§impl<'de> Deserialize<'de> for CodeEvaluator
impl<'de> Deserialize<'de> for CodeEvaluator
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>,
Source§impl PartialEq for CodeEvaluator
impl PartialEq for CodeEvaluator
Source§impl Serialize for CodeEvaluator
impl Serialize for CodeEvaluator
impl StructuralPartialEq for CodeEvaluator
Source§impl Validate for CodeEvaluator
impl Validate for CodeEvaluator
Source§fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
errors, with its path below path, and nothing when the value
is valid. validate() calls it with Path::root; a model calls it on the models it holds with their path.