Function aoc_driver::post_answer
source · pub fn post_answer(
session: &str,
year: i32,
day: i32,
part: i32,
answer: &str,
cache_path: Option<impl AsRef<Path>>
) -> 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