Skip to main content

ConfigOperations

Trait ConfigOperations 

Source
pub trait ConfigOperations {
    // Required methods
    fn with_config<P: AsRef<Path>>(&self, config_path: P) -> ExifTool;
    fn diff<P: AsRef<Path>, Q: AsRef<Path>>(
        &self,
        source: P,
        target: Q,
    ) -> Result<DiffResult>;
    fn diff_tags<P: AsRef<Path>, Q: AsRef<Path>>(
        &self,
        source: P,
        target: Q,
        tags: &[TagId],
    ) -> Result<DiffResult>;
}
Expand description

配置操作 trait

Required Methods§

Source

fn with_config<P: AsRef<Path>>(&self, config_path: P) -> ExifTool

加载配置文件(-config

Source

fn diff<P: AsRef<Path>, Q: AsRef<Path>>( &self, source: P, target: Q, ) -> Result<DiffResult>

比较两个文件的元数据

Source

fn diff_tags<P: AsRef<Path>, Q: AsRef<Path>>( &self, source: P, target: Q, tags: &[TagId], ) -> Result<DiffResult>

比较两个文件的元数据(仅特定标签)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§