pub async fn get_admin_page(
conn: &mut PgConnection,
verified_via: Option<StudentNumberVerificationMethod>,
search: Option<&str>,
limit: i64,
offset: i64,
) -> ModelResult<(Vec<AdminVerifiedStudentNumber>, i64)>Expand description
Live links only, newest first: a retired link is not a number we hold. Returns the page together
with how many rows match the filters in total, from one query via COUNT(*) OVER().
search is escaped here, not by the caller: escape_like_pattern is easy to forget to call, and
forgetting it would let %/_ in a student number match more than intended.