1
0
Fork 0
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:
Dominic 2019-10-03 00:41:29 +02:00
parent 74ea1b820b
commit 46372dee60
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 14 additions and 5 deletions

View file

@ -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