-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod judge_recipe; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
pub struct Execution { | ||
pub optional_info: Option<OptionalInfo>, | ||
pub shell_script_id: uuid::Uuid, | ||
pub directory_count: f64, | ||
pub text_resource_count: f64, | ||
pub one_time_text_count: f64, | ||
} | ||
|
||
pub struct ExecutionConfigMap { | ||
pub text_resource_ids: Option<Vec<uuid::Uuid>>, | ||
pub one_time_text_contents: Option<Vec<String>>, | ||
} | ||
pub struct Judge { | ||
pub judge_id: uuid::Uuid, | ||
pub test_count: f64, | ||
pub before_test_execs: Execution, | ||
pub on_test_execs: Execution, | ||
pub after_test_execs: Execution, | ||
pub before_test_config_map: ExecutionConfigMap, | ||
pub on_test_config_maps: Vec<ExecutionConfigMap>, | ||
pub after_test_config_map: ExecutionConfigMap, | ||
} | ||
|
||
pub struct OptionalInfo { | ||
pub exec_time: Option<f64>, | ||
pub memory_size: Option<f64>, | ||
pub language: Option<String>, | ||
} |