added ApiSelectionResponse trait
This commit is contained in:
parent
e93b3529cb
commit
dc176a4c60
4 changed files with 13 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "torn-api-macros"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
edition = "2021"
|
||||
authors = ["Pyrit [2111649]"]
|
||||
license = "MIT"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue