mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
derive: AuthStatus<T> needs T to always be Clone
This commit is contained in:
parent
342fd2a647
commit
6e9d8bd158
2 changed files with 2 additions and 10 deletions
|
@ -127,7 +127,7 @@ simply add it to your pipeline and request it inside your handler:
|
|||
#[rest_resource(read_all)]
|
||||
struct AuthResource;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
struct AuthData {
|
||||
sub: String,
|
||||
exp: u64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue