Skip to main content

load_task_specs

Function load_task_specs 

Source
pub async fn load_task_specs(
    conn: &mut PgConnection,
    exercise_id: Uuid,
    page: Option<&PageSnapshot>,
    read_state: ReadState,
) -> Result<HashMap<Uuid, TaskSpecs>, ToolError>
Expand description

The specs of the exercise’s tasks in read_state, by task id. page is the page holding the exercise in that state.