HomeDisk/types/src/fs/list.rs

26 lines
521 B
Rust
Raw Normal View History

2022-04-24 20:07:41 +00:00
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Request {
pub path: String,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Response {
2022-04-29 19:33:44 +00:00
pub files: Vec<FileInfo>,
2022-05-03 08:42:53 +00:00
pub dirs: Vec<DirInfo>,
2022-04-24 20:07:41 +00:00
}
2022-04-29 19:33:44 +00:00
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct FileInfo {
pub name: String,
pub size: String,
2022-05-03 09:26:29 +00:00
pub modified: String,
2022-04-29 19:33:44 +00:00
}
2022-05-03 08:42:53 +00:00
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct DirInfo {
pub name: String,
pub size: String,
}