mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 14:57:01 +00:00
don't loose dependencies
This commit is contained in:
parent
74ea1b820b
commit
46372dee60
3 changed files with 14 additions and 5 deletions
|
@ -26,17 +26,16 @@ rest_resource!{Users, route => {
|
|||
}}
|
||||
|
||||
#[derive(Deserialize, OpenapiType, Serialize)]
|
||||
enum TestEnum
|
||||
struct TestStruct
|
||||
{
|
||||
Foo,
|
||||
Bar
|
||||
foo : String
|
||||
}
|
||||
|
||||
#[derive(Deserialize, OpenapiType, Serialize)]
|
||||
struct User
|
||||
{
|
||||
username : String,
|
||||
test : Option<TestEnum>
|
||||
test : Option<Vec<TestStruct>>
|
||||
}
|
||||
|
||||
impl ResourceReadAll<Success<Vec<Option<User>>>> for Users
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue