init bucketmeta struct

This commit is contained in:
weisd
2024-09-27 22:00:45 +08:00
parent b4a95d20e2
commit cbaea166c4
31 changed files with 275 additions and 235 deletions
+3 -1
View File
@@ -364,6 +364,7 @@ pub struct ReadOptions {
// }
// }
#[derive(Debug)]
pub enum FileWriter {
Local(LocalFileWriter),
Remote(RemoteFileWriter),
@@ -378,7 +379,7 @@ impl Write for FileWriter {
}
}
}
#[derive(Debug)]
pub struct LocalFileWriter {
pub inner: File,
}
@@ -399,6 +400,7 @@ impl Write for LocalFileWriter {
}
}
#[derive(Debug)]
pub struct RemoteFileWriter {
pub root: PathBuf,
pub volume: String,