-
Notifications
You must be signed in to change notification settings - Fork 297
Closed
Labels
AliasesWork for global aliasesWork for global aliasesGenerics - HardStuff concerning generics implementationStuff concerning generics implementation
Description
Assuming I have some struct:
pub struct SearchResult<T> {};
Which I use throughout different APIs. that makes it impossible to use the #[alias]
, as it doesn't know anything about the downstream types. And even does not have access to them.
I tried using an simple pub type SearchResult = common::SearchResult<Foo>
, using it as part of the actix function, as well as registering it to the OpenAPI schema. However, this again results in an object referencing T
:
properties:
result:
$ref: '#/components/schemas/T'
declension
Metadata
Metadata
Assignees
Labels
AliasesWork for global aliasesWork for global aliasesGenerics - HardStuff concerning generics implementationStuff concerning generics implementation