pub struct TutorialBuilder { /* private fields */ }Implementations§
Source§impl TutorialBuilder
impl TutorialBuilder
pub fn new(id: String, title: String) -> Self
pub fn description(self, description: String) -> Self
pub fn difficulty(self, difficulty: DifficultyLevel) -> Self
pub fn duration(self, minutes: u32) -> Self
pub fn prerequisite(self, prerequisite: String) -> Self
pub fn learning_objective(self, objective: String) -> Self
pub fn category(self, category: TutorialCategory) -> Self
pub fn tag(self, tag: String) -> Self
pub fn section(self, id: String, title: String) -> Self
pub fn text_content(self, content: String, format: ContentFormat) -> Self
pub fn code_content( self, content: String, language: String, runnable: bool, ) -> Self
pub fn exercise( self, description: String, starter_code: String, solution: String, ) -> Self
pub fn interactive_element( self, element_type: InteractiveElementType, config: Value, ) -> Self
pub fn section_duration(self, minutes: u32) -> Self
pub fn completion_criteria(self, criteria: CompletionCriteria) -> Self
pub fn assessment(self, assessment: Assessment) -> Self
pub fn build(self) -> Tutorial
Auto Trait Implementations§
impl Freeze for TutorialBuilder
impl RefUnwindSafe for TutorialBuilder
impl Send for TutorialBuilder
impl Sync for TutorialBuilder
impl Unpin for TutorialBuilder
impl UnwindSafe for TutorialBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more