pub struct ConsoleFormatter;Expand description
Standard console output formatter with colored output
Trait Implementations§
Source§impl Clone for ConsoleFormatter
impl Clone for ConsoleFormatter
Source§fn clone(&self) -> ConsoleFormatter
fn clone(&self) -> ConsoleFormatter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConsoleFormatter
Source§impl Debug for ConsoleFormatter
impl Debug for ConsoleFormatter
Source§impl OutputFormatter for ConsoleFormatter
impl OutputFormatter for ConsoleFormatter
Source§fn warning(&self, message: &str) -> String
fn warning(&self, message: &str) -> String
Formats a warning message with yellow warning symbol
Source§fn generation(&self, message: &str) -> String
fn generation(&self, message: &str) -> String
Formats a generation message with cyan art symbol
Source§fn print_success(&self, message: &str)
fn print_success(&self, message: &str)
Prints a success message
Source§fn print_error(&self, message: &str)
fn print_error(&self, message: &str)
Prints an error message
Source§fn print_warning(&self, message: &str)
fn print_warning(&self, message: &str)
Prints a warning message
Source§fn print_info(&self, message: &str)
fn print_info(&self, message: &str)
Prints an info message
Source§fn print_progress(&self, message: &str)
fn print_progress(&self, message: &str)
Prints a progress message
Source§fn print_skip(&self, message: &str)
fn print_skip(&self, message: &str)
Prints a skip message
Source§fn print_generation(&self, message: &str)
fn print_generation(&self, message: &str)
Prints a generation message
Auto Trait Implementations§
impl Freeze for ConsoleFormatter
impl RefUnwindSafe for ConsoleFormatter
impl Send for ConsoleFormatter
impl Sync for ConsoleFormatter
impl Unpin for ConsoleFormatter
impl UnsafeUnpin for ConsoleFormatter
impl UnwindSafe for ConsoleFormatter
Blanket Implementations§
Source§impl<T> ApiErrorFormatter for Twhere
T: OutputFormatter,
impl<T> ApiErrorFormatter for Twhere
T: OutputFormatter,
Source§fn format_openai_error(
&self,
status: u16,
response: &str,
endpoint: &str,
) -> String
fn format_openai_error( &self, status: u16, response: &str, endpoint: &str, ) -> String
Formats an OpenAI API error message
Source§fn format_image_generation_failure(&self, error: &str) -> String
fn format_image_generation_failure(&self, error: &str) -> String
Formats image generation failure
Source§fn format_image_download_failure(&self, error: &str) -> String
fn format_image_download_failure(&self, error: &str) -> String
Formats image download failure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FilePathFormatter for Twhere
T: OutputFormatter,
impl<T> FilePathFormatter for Twhere
T: OutputFormatter,
Source§fn 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
Source§fn format_upload_success(&self, path: &Path) -> String
fn format_upload_success(&self, path: &Path) -> String
Formats an upload success message
Source§fn format_upload_failure(&self, path: &Path) -> String
fn format_upload_failure(&self, path: &Path) -> String
Formats an upload failure message
Source§fn format_skip_published(&self, path: &Path) -> String
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
fn format_cover_generation(&self, path: &Path) -> String
Formats a cover generation message
Source§fn format_cover_success(&self, filename: &str) -> String
fn format_cover_success(&self, filename: &str) -> String
Formats a cover generation success message
Source§fn format_cover_failure(&self) -> String
fn format_cover_failure(&self) -> String
Formats a cover generation failure message
Source§fn format_image_prompt(&self, prompt: &str) -> String
fn format_image_prompt(&self, prompt: &str) -> String
Formats an image prompt message
Source§fn format_target_path(&self, path: &Path) -> String
fn format_target_path(&self, path: &Path) -> String
Formats a target path message
Source§fn format_image_saved(&self, path: &Path) -> String
fn format_image_saved(&self, path: &Path) -> String
Formats an image save success message
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more