1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct StorageObject {
6 pub key: String,
7 pub object_id: String,
8 pub size_bytes: u64,
9 pub sha256: String,
10 pub content_type: Option<String>,
11 pub committed_at_ms: u64,
12}
13
14#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
15#[serde(rename_all = "camelCase")]
16pub struct StorageObjectList {
17 pub objects: Vec<StorageObject>,
18 pub next_cursor: Option<String>,
19}
20
21#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
22#[serde(rename_all = "camelCase")]
23pub enum StorageWriteState {
24 Writable,
25 LowSpace,
26 BlockedByPhysicalSpace,
27}