pub struct LessonMove {
pub id: String,
pub from: Store,
pub to: Store,
pub from_file: &'static str,
pub to_file: &'static str,
pub source_version: u32,
pub copy: Lesson,
pub already: bool,
pub tombstone: Option<Lesson>,
pub others: Vec<String>,
}Expand description
What moving a lesson does.
Fields§
§id: String§from: Store§to: Store§from_file: &'static strThe file it is read from and the one it is appended to (lessons.jsonl or [PERSONAL_FILE]).
to_file: &'static str§source_version: u32The source’s latest version, and the line the target gets (its next version).
copy: Lesson§already: boolThe target holds the lesson as the source has it already (a move applied before): no copy.
tombstone: Option<Lesson>The source’s tombstone; None when another engineer is on the lesson in a team store, or the source holds one already.
others: Vec<String>The other engineers on it.
Implementations§
Trait Implementations§
Source§impl Clone for LessonMove
impl Clone for LessonMove
Auto Trait Implementations§
impl Freeze for LessonMove
impl RefUnwindSafe for LessonMove
impl Send for LessonMove
impl Sync for LessonMove
impl Unpin for LessonMove
impl UnsafeUnpin for LessonMove
impl UnwindSafe for LessonMove
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