HomeDisk/types/src/auth/login.rs

17 lines
378 B
Rust
Raw Normal View History

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