Struct umm::grade::GradescopeTestCaseBuilder
source · pub struct GradescopeTestCaseBuilder<TypedBuilderFields = ((), (), (), (), (), (), (), (), (), (), ())> {
fields: TypedBuilderFields,
phantom: PhantomData<()>,
}
Expand description
Builder for GradescopeTestCase
instances.
See GradescopeTestCase::builder()
for more info.
Fields§
§fields: TypedBuilderFields
§phantom: PhantomData<()>
Implementations§
pub fn status( self, status: impl Into<Option<GradescopeStatus>> ) -> GradescopeTestCaseBuilder<(__score, __max_score, (Option<GradescopeStatus>,), __name, __name_format, __number, __output, __output_format, __tags, __visibility, __extra_data)>
pub fn name_format( self, name_format: impl Into<Option<GradescopeOutputFormat>> ) -> GradescopeTestCaseBuilder<(__score, __max_score, __status, __name, (Option<GradescopeOutputFormat>,), __number, __output, __output_format, __tags, __visibility, __extra_data)>
pub fn output_format( self, output_format: impl Into<Option<GradescopeOutputFormat>> ) -> GradescopeTestCaseBuilder<(__score, __max_score, __status, __name, __name_format, __number, __output, (Option<GradescopeOutputFormat>,), __tags, __visibility, __extra_data)>
source§impl<__score, __max_score, __status, __name, __name_format, __number, __output, __output_format, __visibility, __extra_data> GradescopeTestCaseBuilder<(__score, __max_score, __status, __name, __name_format, __number, __output, __output_format, (), __visibility, __extra_data)>
impl<__score, __max_score, __status, __name, __name_format, __number, __output, __output_format, __visibility, __extra_data> GradescopeTestCaseBuilder<(__score, __max_score, __status, __name, __name_format, __number, __output, __output_format, (), __visibility, __extra_data)>
pub fn visibility( self, visibility: impl Into<Option<GradescopeVisibility>> ) -> GradescopeTestCaseBuilder<(__score, __max_score, __status, __name, __name_format, __number, __output, __output_format, __tags, (Option<GradescopeVisibility>,), __extra_data)>
pub fn extra_data( self, extra_data: impl Into<Option<Value>> ) -> GradescopeTestCaseBuilder<(__score, __max_score, __status, __name, __name_format, __number, __output, __output_format, __tags, __visibility, (Option<Value>,))>
sourcepub fn build(self) -> GradescopeTestCase
pub fn build(self) -> GradescopeTestCase
Finalise the builder and create its GradescopeTestCase
instance
Trait Implementations§
Auto Trait Implementations§
impl<TypedBuilderFields> RefUnwindSafe for GradescopeTestCaseBuilder<TypedBuilderFields>where
TypedBuilderFields: RefUnwindSafe,
impl<TypedBuilderFields> Send for GradescopeTestCaseBuilder<TypedBuilderFields>where
TypedBuilderFields: Send,
impl<TypedBuilderFields> Sync for GradescopeTestCaseBuilder<TypedBuilderFields>where
TypedBuilderFields: Sync,
impl<TypedBuilderFields> Unpin for GradescopeTestCaseBuilder<TypedBuilderFields>where
TypedBuilderFields: Unpin,
impl<TypedBuilderFields> UnwindSafe for GradescopeTestCaseBuilder<TypedBuilderFields>where
TypedBuilderFields: UnwindSafe,
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