2022-06-11 08:19:47 +00:00
|
|
|
//! HTTP `/auth/login` Request and Response types
|
2022-06-08 19:16:12 +00:00
|
|
|
|
2022-04-18 12:13:15 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
2022-06-11 08:19:47 +00:00
|
|
|
/// HTTP `/auth/login` Request
|
2022-07-04 20:19:12 +00:00
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
2022-04-18 12:13:15 +00:00
|
|
|
pub struct Request {
|
|
|
|
pub username: String,
|
|
|
|
pub password: String,
|
|
|
|
}
|
|
|
|
|
2022-06-11 08:19:47 +00:00
|
|
|
/// HTTP `/auth/login` Response
|
2022-07-04 20:19:12 +00:00
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
2022-08-30 11:33:15 +00:00
|
|
|
pub struct Response {
|
|
|
|
pub access_token: String,
|
2022-04-18 12:13:15 +00:00
|
|
|
}
|