oximedia_proxy/metadata/
sync.rs1use crate::Result;
4use std::collections::HashMap;
5
6pub struct MetadataSync;
8
9impl MetadataSync {
10 #[must_use]
12 pub const fn new() -> Self {
13 Self
14 }
15
16 pub fn sync_to_proxy(
18 &self,
19 _original: &std::path::Path,
20 _proxy: &std::path::Path,
21 ) -> Result<()> {
22 Ok(())
24 }
25
26 pub fn extract_metadata(&self, _path: &std::path::Path) -> Result<HashMap<String, String>> {
28 Ok(HashMap::new())
30 }
31
32 pub fn apply_metadata(
34 &self,
35 _path: &std::path::Path,
36 _metadata: &HashMap<String, String>,
37 ) -> Result<()> {
38 Ok(())
40 }
41}
42
43impl Default for MetadataSync {
44 fn default() -> Self {
45 Self::new()
46 }
47}
48
49#[cfg(test)]
50mod tests {
51 use super::*;
52
53 #[test]
54 fn test_metadata_sync() {
55 let sync = MetadataSync::new();
56 let result = sync.sync_to_proxy(
57 std::path::Path::new("original.mov"),
58 std::path::Path::new("proxy.mp4"),
59 );
60 assert!(result.is_ok());
61 }
62}