pub(crate) async fn get_user_submissions(
    uid: u32,
    count: u16
) -> Result<UserSubmission, ExitFailure>
Expand description

Returns the user’s last submissions to any problem. This function is async, that means it has to be called inside an async function/method or using tokio::Runtime.block_on().

Arguments

  • uid - An unsigned, 32 bit number indicating the id of the user
  • count - An unsigned, 16 bit number indicating the number of submissions. to show. Note this number is capped at 100 and will return an error if. it is more than this.

Examples

// Returns the last 5 submissions of user LovetheFrogs
let user_subs: UserSubmission = get_user_submissions(1589052, 5).await?;