oximedia_proxy/metadata/
transfer.rs1use crate::Result;
4use std::collections::HashMap;
5
6pub struct MetadataTransfer;
8
9impl MetadataTransfer {
10 #[must_use]
12 pub const fn new() -> Self {
13 Self
14 }
15
16 pub fn transfer_all(
18 &self,
19 _source: &std::path::Path,
20 _destination: &std::path::Path,
21 ) -> Result<()> {
22 Ok(())
24 }
25
26 pub fn transfer_fields(
28 &self,
29 _source: &std::path::Path,
30 _destination: &std::path::Path,
31 _fields: &[String],
32 ) -> Result<()> {
33 Ok(())
35 }
36
37 pub fn merge_metadata(&self, _sources: &[HashMap<String, String>]) -> HashMap<String, String> {
39 HashMap::new()
41 }
42}
43
44impl Default for MetadataTransfer {
45 fn default() -> Self {
46 Self::new()
47 }
48}
49
50#[cfg(test)]
51mod tests {
52 use super::*;
53
54 #[test]
55 fn test_metadata_transfer() {
56 let transfer = MetadataTransfer::new();
57 let result = transfer.transfer_all(
58 std::path::Path::new("source.mov"),
59 std::path::Path::new("dest.mp4"),
60 );
61 assert!(result.is_ok());
62 }
63}