pub struct Lesson {
pub id: String,
pub title: String,
pub description: String,
pub difficulty: Difficulty,
pub estimated_minutes: u32,
pub steps: Vec<LessonStep>,
pub prerequisites: Vec<String>,
pub tags: Vec<String>,
}Expand description
A complete lesson module (e.g., “Navigation Basics”)
Fields§
§id: String§title: String§description: String§difficulty: Difficulty§estimated_minutes: u32§steps: Vec<LessonStep>§prerequisites: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lesson
impl<'de> Deserialize<'de> for Lesson
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Lesson
impl RefUnwindSafe for Lesson
impl Send for Lesson
impl Sync for Lesson
impl Unpin for Lesson
impl UnwindSafe for Lesson
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