deta_rust/drive/
models.rs1use serde::{Deserialize, Serialize};
4use std::collections::HashMap;
5
6#[derive(Serialize, Deserialize, Clone, Debug)]
7pub struct PutFile {
8 pub name: String,
9 pub project_id: String,
10 pub drive_name: String,
11}
12
13#[derive(Serialize, Deserialize, Clone, Debug)]
14pub(crate) struct InitializeChunkedUpload {
15 pub upload_id: String,
16}
17
18#[derive(Serialize, Deserialize, Clone, Debug)]
19pub struct EndChunkedUpload {
20 pub name: String,
21 pub upload_id: String,
22 pub project_id: String,
23 pub drive_name: String,
24}
25
26#[derive(Serialize, Deserialize, Clone, Debug)]
27pub struct ListFiles {
28 pub paging: Option<ListFilesPaging>,
29 pub names: Vec<String>,
30}
31
32#[derive(Serialize, Deserialize, Clone, Debug)]
33pub struct ListFilesPaging {
34 pub size: usize,
35 pub last: Option<String>,
36}
37
38#[derive(Serialize, Deserialize, Clone, Debug)]
39pub struct DeleteFiles {
40 pub deleted: Vec<String>,
41 pub failed: Option<HashMap<String, String>>,
42}