service/mount_ops/
types.rs1use common::prelude::Link;
2use time::OffsetDateTime;
3use uuid::Uuid;
4
5use crate::database::models::SyncStatus;
6
7#[derive(Debug, Clone)]
8pub struct BucketInfo {
9 pub bucket_id: Uuid,
10 pub name: String,
11 pub link: Link,
12 pub created_at: OffsetDateTime,
13 pub sync_status: SyncStatus,
14 pub last_sync_attempt: Option<OffsetDateTime>,
15 pub sync_error: Option<String>,
16}
17
18#[derive(Debug, Clone)]
19pub struct FileInfo {
20 pub path: String,
21 pub name: String,
22 pub link: Link,
23 pub is_dir: bool,
24 pub mime_type: String,
25}