Declarative macro magic from Axum in Rust

Take a quick glance at the code snippet below. Without thinking too hard, is get a function or a method? How about post ? Router::new() .route(“/one”, get(get_handler).post(post_handler)) .route(“/two”, post(post_handler).get(get_handler)) What did you decide: is get a function or a method? It appears to be both! And the same with post ! If you are familiar with API development in Rust, you may…