HomeDisk/types/src/auth/whoami.rs

11 lines
237 B
Rust
Raw Normal View History

2022-06-11 08:19:47 +00:00
//! HTTP `/auth/whoami` Response type
2022-06-08 19:16:12 +00:00
use serde::{Deserialize, Serialize};
2022-06-11 08:19:47 +00:00
/// HTTP `/auth/whoami` Response
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Response {
2022-06-08 22:02:20 +00:00
/// Logged user username
pub username: String,
}