diff options
| author | Tolmachev Igor <me@igorek.dev> | 2025-09-26 22:46:11 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2025-09-26 22:46:11 +0300 |
| commit | 47184c7b41cbe181795f4793e39d03e601a50cc6 (patch) | |
| tree | 58f740ded695ca9b114233893f5bf832ab5f4ea8 /src/routers | |
| parent | f06554c0bbd3652265de7dd71d1178e755075679 (diff) | |
| download | queue_server-47184c7b41cbe181795f4793e39d03e601a50cc6.tar.gz queue_server-47184c7b41cbe181795f4793e39d03e601a50cc6.zip | |
Add an example for the token field
Diffstat (limited to 'src/routers')
| -rw-r--r-- | src/routers/account.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routers/account.rs b/src/routers/account.rs index 3159db6..51ce911 100644 --- a/src/routers/account.rs +++ b/src/routers/account.rs | |||
| @@ -29,6 +29,7 @@ async fn username_exists(username: &str, db: &DatabaseConnection) -> Result<bool | |||
| 29 | #[derive(Serialize, ToSchema)] | 29 | #[derive(Serialize, ToSchema)] |
| 30 | #[schema(description = "Authorization token information")] | 30 | #[schema(description = "Authorization token information")] |
| 31 | struct Token { | 31 | struct Token { |
| 32 | #[schema(examples("eyJ0eXAiO..."))] | ||
| 32 | token: String, | 33 | token: String, |
| 33 | expired_at: DateTime<Utc>, | 34 | expired_at: DateTime<Utc>, |
| 34 | } | 35 | } |
