Function aoc_driver::post_answer
source · pub fn post_answer(
session: &str,
year: impl Into<i32>,
day: impl Into<i32>,
part: impl Into<i32>,
answer: impl Display
) -> Result<()>
Expand description
Post an answer to the AoC website.
Returns Ok(())
if answer was correct or has already been given
Returns Err(Error::Incorrect)
if the answer was wrong
Returns Err(Error::RateLimit(String))
if you are being rate-limited