Function headless_lms_models::library::course_instances::enroll
source · pub async fn enroll(
conn: &mut PgConnection,
user_id: Uuid,
course_instance_id: Uuid,
background_question_answers: &[NewCourseBackgroundQuestionAnswer]
) -> Result<CourseInstanceEnrollment>
Expand description
Enrolls the user to the given course instance.