Struct umm::grade::GradescopeTestCase
source · pub struct GradescopeTestCase {
pub score: Option<f64>,
pub max_score: Option<f64>,
pub status: Option<GradescopeStatus>,
pub name: Option<String>,
pub name_format: Option<GradescopeOutputFormat>,
pub number: Option<String>,
pub output: Option<String>,
pub output_format: Option<GradescopeOutputFormat>,
pub tags: Option<Vec<String>>,
pub visibility: Option<GradescopeVisibility>,
pub extra_data: Option<Value>,
}
Expand description
Represents an individual test case.
Fields§
§score: Option<f64>
Optional score for the test case.
max_score: Option<f64>
Optional maximum score for the test case.
status: Option<GradescopeStatus>
Optional status of the test case.
name: Option<String>
Optional name of the test case.
name_format: Option<GradescopeOutputFormat>
Optional formatting for the test case name.
number: Option<String>
Optional number for the test case.
output: Option<String>
Optional detailed output for the test case.
output_format: Option<GradescopeOutputFormat>
Optional formatting for the test case output.
Optional tags associated with the test case.
visibility: Option<GradescopeVisibility>
Optional visibility setting for the test case.
extra_data: Option<Value>
Optional extra data to be stored with the test case.
Implementations§
source§impl GradescopeTestCase
impl GradescopeTestCase
sourcepub fn builder(
) -> GradescopeTestCaseBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> GradescopeTestCaseBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building GradescopeTestCase
.
On the builder, call .score(...)
(optional), .max_score(...)
(optional), .status(...)
(optional), .name(...)
(optional), .name_format(...)
(optional), .number(...)
(optional), .output(...)
(optional), .output_format(...)
(optional), .tags(...)
(optional), .visibility(...)
(optional), .extra_data(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GradescopeTestCase
.