Skip to main content

FilePathFormatter

Trait FilePathFormatter 

Source
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§

Source

fn format_file_operation(&self, operation: &str, path: &Path) -> String

Formats a file operation message with consistent path display

Source

fn format_upload_success(&self, path: &Path) -> String

Formats an upload success message

Source

fn format_upload_failure(&self, path: &Path) -> String

Formats an upload failure message

Source

fn format_skip_published(&self, path: &Path) -> String

Formats a skip message for already published files

Source

fn format_cover_generation(&self, path: &Path) -> String

Formats a cover generation message

Source

fn format_cover_success(&self, filename: &str) -> String

Formats a cover generation success message

Source

fn format_cover_failure(&self) -> String

Formats a cover generation failure message

Source

fn format_image_prompt(&self, prompt: &str) -> String

Formats an image prompt message

Source

fn format_target_path(&self, path: &Path) -> String

Formats a target path message

Source

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".

Implementors§