Skip to main content

insert_seed_row

Function insert_seed_row 

Source
pub async fn insert_seed_row(
    conn: &mut PgConnection,
    pkey_policy: PKeyPolicy<Uuid>,
    seed: &SeedStudentNumberVerificationToken,
) -> ModelResult<Uuid>
Expand description

Seeds a token with a fixed plaintext value and a chosen expiry/claim state, which insert cannot do: system tests need the valid, expired and used links to be constants. Seed use only.