async fn teacher_facing_page(
conn: &mut PgConnection,
course_id: Option<Uuid>,
filters: &TeacherCreditRegistrationFilters<'_>,
limit: i64,
offset: i64,
) -> ModelResult<Vec<TeacherCreditRegistration>>Expand description
The one query behind every teacher-facing read, so a filter wired into a page cannot be missed
in its count. total_count is computed before the limit, which is why the count reads it with
limit = 1.