Skip to main content

get_page

pub async fn get_page(
    conn: &mut PgConnection,
    status: Option<LinkingEmailListStatus>,
    address: Option<&str>,
    limit: i64,
    offset: i64,
) -> ModelResult<Vec<LinkingEmailListRow>>
Expand description

A page of linking emails on live courses, newest first, including ones a later mail replaced.

address matches any part of the recipient address, ignoring case, and overrides status, so a search for a student finds their mail whatever became of it.