added ApiSelectionResponse trait

This commit is contained in:
TotallyNot 2024-04-04 16:48:53 +02:00
parent 0b353134f1
commit 9c49d2e316
4 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "torn-api-macros"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
authors = ["Pyrit [2111649]"]
license = "MIT"

View file

@ -153,6 +153,12 @@ fn impl_api_category(ast: &syn::DeriveInput) -> TokenStream {
}
}
impl crate::ApiSelectionResponse for Response {
fn into_inner(self) -> crate::ApiResponse {
self.0
}
}
impl crate::ApiSelection for #name {
type Response = Response;