pub struct OutputFormatter { /* private fields */ }Expand description
Output formatter for CLI commands
Implementations§
Source§impl OutputFormatter
impl OutputFormatter
Sourcepub fn progress_bar(&self, message: &str) -> ProgressBar
pub fn progress_bar(&self, message: &str) -> ProgressBar
Sourcepub fn print_ticket(&self, ticket: &Ticket) -> Result<()>
pub fn print_ticket(&self, ticket: &Ticket) -> Result<()>
Prints a ticket
Sourcepub fn print_tickets(&self, tickets: &[Ticket]) -> Result<()>
pub fn print_tickets(&self, tickets: &[Ticket]) -> Result<()>
Prints a list of tickets
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutputFormatter
impl RefUnwindSafe for OutputFormatter
impl Send for OutputFormatter
impl Sync for OutputFormatter
impl Unpin for OutputFormatter
impl UnsafeUnpin for OutputFormatter
impl UnwindSafe for OutputFormatter
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