refactor(filemeta): FileInfo data use Bytes

This commit is contained in:
Nugine
2025-06-15 21:01:38 +08:00
parent 3a567768c1
commit 8309d2f8be
3 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -168,13 +168,13 @@ pub struct FileInfo {
pub mark_deleted: bool,
// ReplicationState - Internal replication state to be passed back in ObjectInfo
// pub replication_state: Option<ReplicationState>, // TODO: implement ReplicationState
pub data: Option<Vec<u8>>,
pub data: Option<Bytes>,
pub num_versions: usize,
pub successor_mod_time: Option<OffsetDateTime>,
pub fresh: bool,
pub idx: usize,
// Combined checksum when object was uploaded
pub checksum: Option<Vec<u8>>,
pub checksum: Option<Bytes>,
pub versioned: bool,
}