pub struct LessonSummary {
pub id: LessonSlug,
pub language: Language,
pub title: String,
}Expand description
One discovered lesson, as listed: its course slug, language, and title.
The title is the lesson’s own lesson_name; the slug is the manifest id. They
are distinct fields so the listing can show both, and a missing title can
never quietly default to the id (ADR-0004).
Fields§
§id: LessonSlugThe lesson’s course-scoped id, from the manifest.
language: LanguageThe language the lesson is authored in.
title: StringThe lesson’s human-readable title (its lesson_name).
Trait Implementations§
Source§impl Clone for LessonSummary
impl Clone for LessonSummary
Source§fn clone(&self) -> LessonSummary
fn clone(&self) -> LessonSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LessonSummary
impl Debug for LessonSummary
Source§impl PartialEq for LessonSummary
impl PartialEq for LessonSummary
impl Eq for LessonSummary
impl StructuralPartialEq for LessonSummary
Auto Trait Implementations§
impl Freeze for LessonSummary
impl RefUnwindSafe for LessonSummary
impl Send for LessonSummary
impl Sync for LessonSummary
impl Unpin for LessonSummary
impl UnwindSafe for LessonSummary
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.