pub struct CliFormatter;Implementations§
Source§impl CliFormatter
impl CliFormatter
pub fn print_section_header(title: &str)
pub fn print_field(label: &str, value: &str, color: Option<&str>)
pub fn print_field_bold(label: &str, value: &str, color: Option<&str>)
pub fn print_status(status: &str, is_active: bool)
pub fn print_summary(title: &str, total: &str)
pub fn print_project_entry(name: &str, duration: &str)
pub fn print_context_entry(context: &str, duration: &str)
pub fn print_session_entry( _session_id: Option<i64>, project: &str, duration: &str, status: &str, timestamp: &str, )
pub fn print_empty_state(message: &str)
pub fn print_error(message: &str)
pub fn print_success(message: &str)
pub fn print_warning(message: &str)
pub fn print_info(message: &str)
pub fn print_block_line(label: &str, value: &str)
pub fn print_daemon_start(version: &str)
pub fn print_daemon_success(pid: u32, info: &str)
Auto Trait Implementations§
impl Freeze for CliFormatter
impl RefUnwindSafe for CliFormatter
impl Send for CliFormatter
impl Sync for CliFormatter
impl Unpin for CliFormatter
impl UnsafeUnpin for CliFormatter
impl UnwindSafe for CliFormatter
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
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