pub struct TutorialBuilder { /* private fields */ }Implementations§
Source§impl TutorialBuilder
impl TutorialBuilder
pub fn new(id: String, title: String) -> TutorialBuilder
pub fn description(self, description: String) -> TutorialBuilder
pub fn difficulty(self, difficulty: DifficultyLevel) -> TutorialBuilder
pub fn duration(self, minutes: u32) -> TutorialBuilder
pub fn prerequisite(self, prerequisite: String) -> TutorialBuilder
pub fn learning_objective(self, objective: String) -> TutorialBuilder
pub fn category(self, category: TutorialCategory) -> TutorialBuilder
pub fn tag(self, tag: String) -> TutorialBuilder
pub fn section(self, id: String, title: String) -> TutorialBuilder
pub fn text_content( self, content: String, format: ContentFormat, ) -> TutorialBuilder
pub fn code_content( self, content: String, language: String, runnable: bool, ) -> TutorialBuilder
pub fn exercise( self, description: String, starter_code: String, solution: String, ) -> TutorialBuilder
pub fn interactive_element( self, element_type: InteractiveElementType, config: Value, ) -> TutorialBuilder
pub fn section_duration(self, minutes: u32) -> TutorialBuilder
pub fn completion_criteria( self, criteria: CompletionCriteria, ) -> TutorialBuilder
pub fn assessment(self, assessment: Assessment) -> TutorialBuilder
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