pub struct OutputFormatter;Expand description
Formats query results for CLI output
Implementations§
Source§impl OutputFormatter
impl OutputFormatter
Sourcepub fn format_result(result: &QueryResult, format: &OutputFormat) -> String
pub fn format_result(result: &QueryResult, format: &OutputFormat) -> String
Format query results according to the specified format
Sourcepub fn format_error(error: &NirvError) -> String
pub fn format_error(error: &NirvError) -> String
Format error message for CLI display
Sourcepub fn format_success(message: &str) -> String
pub fn format_success(message: &str) -> String
Format success message for CLI display
Sourcepub fn format_info(message: &str) -> String
pub fn format_info(message: &str) -> String
Format info message for CLI display
Auto Trait Implementations§
impl Freeze for OutputFormatter
impl RefUnwindSafe for OutputFormatter
impl Send for OutputFormatter
impl Sync for OutputFormatter
impl Unpin 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