Struct umm::grade::GradescopeSubmission
source · pub struct GradescopeSubmission {
pub score: Option<f64>,
pub execution_time: Option<u32>,
pub output: Option<String>,
pub output_format: Option<GradescopeOutputFormat>,
pub test_output_format: Option<GradescopeOutputFormat>,
pub test_name_format: Option<GradescopeOutputFormat>,
pub visibility: Option<GradescopeVisibility>,
pub stdout_visibility: Option<GradescopeVisibility>,
pub extra_data: Option<Value>,
pub tests: Option<Vec<GradescopeTestCase>>,
pub leaderboard: Option<Vec<GradescopeLeaderboardEntry>>,
}
Expand description
Represents the overall submission data.
Fields§
§score: Option<f64>
Optional overall score. Overrides total of test cases if specified.
execution_time: Option<u32>
Optional execution time in seconds.
output: Option<String>
Optional text relevant to the entire submission.
output_format: Option<GradescopeOutputFormat>
Optional output format settings.
test_output_format: Option<GradescopeOutputFormat>
Optional default output format for test case outputs.
test_name_format: Option<GradescopeOutputFormat>
Optional default output format for test case names.
visibility: Option<GradescopeVisibility>
Optional visibility setting.
stdout_visibility: Option<GradescopeVisibility>
Optional stdout visibility setting.
extra_data: Option<Value>
Optional extra data to be stored.
tests: Option<Vec<GradescopeTestCase>>
Optional test cases.
leaderboard: Option<Vec<GradescopeLeaderboardEntry>>
Optional leaderboard setup.
Implementations§
source§impl GradescopeSubmission
impl GradescopeSubmission
sourcepub fn builder(
) -> GradescopeSubmissionBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> GradescopeSubmissionBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building GradescopeSubmission
.
On the builder, call .score(...)
(optional), .execution_time(...)
(optional), .output(...)
(optional), .output_format(...)
(optional), .test_output_format(...)
(optional), .test_name_format(...)
(optional), .visibility(...)
(optional), .stdout_visibility(...)
(optional), .extra_data(...)
(optional), .tests(...)
(optional), .leaderboard(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GradescopeSubmission
.