Function u_interface::get_problem_by_pid
source · [−]Expand description
Returns the problem with id pid
, or an empty struct if it does
not exist. This function is async, that means it has to be
called inside an async function/method or using tokio::Runtime.block_on()
.
Arguments
pid
- An unsigned, 16 bit number indicating the id of the problem.
Examples
// Returns the problem with id 403
let problem: Problem = get_problem_by_pid(403).await?;