pub trait FilePathFormatter {
// Required methods
fn format_file_operation(&self, operation: &str, path: &Path) -> String;
fn format_upload_success(&self, path: &Path) -> String;
fn format_upload_failure(&self, path: &Path) -> String;
fn format_skip_published(&self, path: &Path) -> String;
fn format_cover_generation(&self, path: &Path) -> String;
fn format_cover_success(&self, filename: &str) -> String;
fn format_cover_failure(&self) -> String;
fn format_image_prompt(&self, prompt: &str) -> String;
fn format_target_path(&self, path: &Path) -> String;
fn format_image_saved(&self, path: &Path) -> String;
}Expand description
Extensions for file path formatting
Required Methods§
Sourcefn format_file_operation(&self, operation: &str, path: &Path) -> String
fn format_file_operation(&self, operation: &str, path: &Path) -> String
Formats a file operation message with consistent path display
Sourcefn format_upload_success(&self, path: &Path) -> String
fn format_upload_success(&self, path: &Path) -> String
Formats an upload success message
Sourcefn format_upload_failure(&self, path: &Path) -> String
fn format_upload_failure(&self, path: &Path) -> String
Formats an upload failure message
Sourcefn format_skip_published(&self, path: &Path) -> String
fn format_skip_published(&self, path: &Path) -> String
Formats a skip message for already published files
Sourcefn format_cover_generation(&self, path: &Path) -> String
fn format_cover_generation(&self, path: &Path) -> String
Formats a cover generation message
Sourcefn format_cover_success(&self, filename: &str) -> String
fn format_cover_success(&self, filename: &str) -> String
Formats a cover generation success message
Sourcefn format_cover_failure(&self) -> String
fn format_cover_failure(&self) -> String
Formats a cover generation failure message
Sourcefn format_image_prompt(&self, prompt: &str) -> String
fn format_image_prompt(&self, prompt: &str) -> String
Formats an image prompt message
Sourcefn format_target_path(&self, path: &Path) -> String
fn format_target_path(&self, path: &Path) -> String
Formats a target path message
Sourcefn format_image_saved(&self, path: &Path) -> String
fn format_image_saved(&self, path: &Path) -> String
Formats an image save success message
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".