headless_
lms_
models
0.1.0
Module chapters
Module Items
Structs
Enums
Functions
In crate headless_
lms_
models
headless_lms_models
Module
chapters
Copy item path
Source
Structs
§
Chapter
Chapter
Info
Chapter
Pages
With
Exercises
Chapter
Update
Chapter
With
Status
Database
Chapter
NewChapter
User
Course
Instance
Chapter
Progress
Enums
§
Chapter
Status
Functions
§
course_
chapters
course_
instance_
chapters
delete_
chapter
get_
chapter
get_
chapter_
by_
page_
id
get_
chapter_
info_
by_
page_
metadata
get_
course_
id
get_
for_
module
get_
user_
course_
instance_
chapter_
progress
insert
is_open
Checks the opens_at field for the chapter and compares it to the current time. If null, the chapter is always open.
set_
front_
page
set_
module
set_
opens_
at
update_
chapter
update_
chapter_
image_
path