pub struct AnalyzerSettings {Show 13 fields
pub analysis_type: AnalysisType,
pub exif_date_type: ExifDateType,
pub source_dirs: Vec<PathBuf>,
pub target_dir: PathBuf,
pub recursive_source: bool,
pub file_format: String,
pub nodate_file_format: String,
pub unknown_file_format: Option<String>,
pub bracketed_file_format: Option<String>,
pub date_format: String,
pub extensions: Vec<String>,
pub action_type: ActionMode,
pub mkdir: bool,
}Expand description
AnalyzerSettings is a struct that holds the settings for an Analyzer.
§Fields
analysis_type- AnAnalysisTypethat specifies the type of analysis to perform on a file.exif_date_type- Which EXIF date to use when analyzing photos. SeeExifDateTypefor details.source_dirs- A vector ofPathreferences that represent the source directories to analyze.target_dir- APathreference that represents the target directory for the analysis results.recursive_source- A boolean that indicates whether to analyze source directories recursively.file_format- A string that represents the target format of the files to analyze.nodate_file_format- A string that represent the target format of files with no date.unknown_file_format- An optional string that represents the target format of files not matching the list of extensionsdate_format- A string that represents the format of the dates in the files to analyze.extensions- A vector of strings that represent the file extensions to consider during analysis.action_type- AnActionModethat specifies the type of action to perform on a file after analysis.mkdir- A boolean that indicates whether to create the target directory if it does not exist.
Fields§
§analysis_type: AnalysisType§exif_date_type: ExifDateType§source_dirs: Vec<PathBuf>§target_dir: PathBuf§recursive_source: bool§file_format: String§nodate_file_format: String§unknown_file_format: Option<String>§bracketed_file_format: Option<String>§date_format: String§extensions: Vec<String>§action_type: ActionMode§mkdir: boolTrait Implementations§
Source§impl Clone for AnalyzerSettings
impl Clone for AnalyzerSettings
Source§fn clone(&self) -> AnalyzerSettings
fn clone(&self) -> AnalyzerSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnalyzerSettings
impl RefUnwindSafe for AnalyzerSettings
impl Send for AnalyzerSettings
impl Sync for AnalyzerSettings
impl Unpin for AnalyzerSettings
impl UnwindSafe for AnalyzerSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more