codex_mobile_bridge/bridge_protocol/
directory.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct DirectoryBookmarkRecord {
6 pub path: String,
7 pub display_name: String,
8 pub created_at_ms: i64,
9 pub updated_at_ms: i64,
10}
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13#[serde(rename_all = "camelCase")]
14pub struct DirectoryHistoryRecord {
15 pub path: String,
16 pub display_name: String,
17 pub last_used_at_ms: i64,
18 pub use_count: i64,
19}
20
21#[derive(Debug, Clone, Serialize, Deserialize)]
22#[serde(rename_all = "camelCase")]
23pub struct DirectoryEntry {
24 pub name: String,
25 pub path: String,
26 pub is_directory: bool,
27}
28
29#[derive(Debug, Clone, Serialize, Deserialize)]
30#[serde(rename_all = "camelCase")]
31pub struct DirectoryListing {
32 pub path: String,
33 pub parent_path: Option<String>,
34 pub entries: Vec<DirectoryEntry>,
35}