pub trait AocClient {
// Required methods
fn fetch_input(&self, puzzle: Puzzle) -> Result<String, ApiError>;
fn submit(
&self,
puzzle: Puzzle,
part: Part,
answer: &str,
) -> Result<Verdict, ApiError>;
}Expand description
Reads puzzle input and submits answers.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".