fix errors/delete_object

This commit is contained in:
weisd
2024-11-19 16:59:51 +08:00
parent 706fce49b9
commit 2ea2fd4308
4 changed files with 443 additions and 129 deletions
+6 -2
View File
@@ -539,6 +539,10 @@ pub struct ObjectOptions {
pub src_pool_idx: usize,
pub user_defined: HashMap<String, String>,
pub preserve_etag: Option<String>,
pub metadata_chg: bool,
pub replication_request: bool,
pub delete_marker: bool,
}
// impl Default for ObjectOptions {
@@ -593,7 +597,7 @@ impl From<s3s::dto::CompletedPart> for CompletePart {
}
}
#[derive(Debug, Default)]
#[derive(Debug, Default, Clone)]
pub struct ObjectInfo {
pub bucket: String,
pub name: String,
@@ -614,7 +618,7 @@ pub struct ObjectInfo {
pub content_encoding: Option<String>,
pub num_versions: usize,
pub successor_mod_time: Option<OffsetDateTime>,
pub put_object_reader: Option<PutObjReader>,
// pub put_object_reader: Option<PutObjReader>,
pub etag: Option<String>,
pub inlined: bool,
}