pub struct Output { /* private fields */ }Expand description
Output handler that respects quiet mode.
Quiet mode is enabled if either --quiet is passed or --json-errors is used.
In quiet mode, only requested data and errors are output.
Implementations§
Source§impl Output
impl Output
Sourcepub const fn new(quiet: bool, json_errors: bool) -> Self
pub const fn new(quiet: bool, json_errors: bool) -> Self
Create new Output handler.
Quiet mode is enabled if --quiet is passed OR --json-errors is passed.
Sourcepub fn info(&self, msg: impl Display)
pub fn info(&self, msg: impl Display)
Print informational message (suppressed in quiet mode).
Use for general status messages like “Registered API specifications:”.
Sourcepub fn success(&self, msg: impl Display)
pub fn success(&self, msg: impl Display)
Print success message (suppressed in quiet mode).
Use for confirmation messages like “Spec ‘foo’ added successfully”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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