pub async fn set_deadline(
conn: &mut PgConnection,
id: Uuid,
deadline: Option<DateTime<Utc>>,
) -> ModelResult<()>Expand description
Sets the exercise’s own deadline, or clears it with None.
Clearing does not necessarily leave the exercise open: an exercise without a deadline inherits
its chapter’s, which get_course_material_exercise resolves.