pub trait FormatOperations {
// Required methods
fn read_formatted<P: AsRef<Path>>(
&self,
path: P,
options: &ReadOptions,
) -> Result<FormattedOutput>;
fn read_xml<P: AsRef<Path>>(&self, path: P) -> Result<String>;
fn read_csv<P: AsRef<Path>>(&self, path: P) -> Result<String>;
fn read_html<P: AsRef<Path>>(&self, path: P) -> Result<String>;
fn read_text<P: AsRef<Path>>(&self, path: P) -> Result<String>;
fn read_directory<P: AsRef<Path>>(
&self,
path: P,
options: &ReadOptions,
) -> Result<Vec<FormattedOutput>>;
}Expand description
扩展 ExifTool 以支持格式化输出
Required Methods§
Sourcefn read_formatted<P: AsRef<Path>>(
&self,
path: P,
options: &ReadOptions,
) -> Result<FormattedOutput>
fn read_formatted<P: AsRef<Path>>( &self, path: P, options: &ReadOptions, ) -> Result<FormattedOutput>
使用自定义格式读取元数据
Sourcefn read_directory<P: AsRef<Path>>(
&self,
path: P,
options: &ReadOptions,
) -> Result<Vec<FormattedOutput>>
fn read_directory<P: AsRef<Path>>( &self, path: P, options: &ReadOptions, ) -> Result<Vec<FormattedOutput>>
递归读取目录
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.