pub struct CliService;Implementations§
Source§impl CliService
impl CliService
pub fn phase(name: &str)
pub fn phase_success(message: &str, detail: Option<&str>)
pub fn phase_info(message: &str, detail: Option<&str>)
pub fn phase_warning(message: &str, detail: Option<&str>)
pub fn service_spinner(service_name: &str, port: Option<u16>) -> ProgressBar
pub fn startup_complete(duration: Duration, api_url: &str)
pub fn session_context( profile: &str, session_id: &SessionId, tenant: Option<&str>, )
pub fn session_context_with_url( profile: &str, session_id: &SessionId, tenant: Option<&str>, api_url: Option<&str>, )
Source§impl CliService
impl CliService
pub fn success(message: &str)
pub fn warning(message: &str)
pub fn error(message: &str)
pub fn info(message: &str)
pub fn debug(message: &str)
pub fn verbose(message: &str)
pub fn fatal(message: &str, exit_code: i32) -> !
pub fn section(title: &str)
pub fn subsection(title: &str)
pub fn clear_screen()
pub fn output(content: &str)
pub fn json<T: Serialize>(value: &T)
pub fn json_compact<T: Serialize>(value: &T)
pub fn yaml<T: Serialize>(value: &T)
pub fn key_value(label: &str, value: &str)
pub fn status_line(label: &str, value: &str, status: ItemStatus)
pub fn spinner(message: &str) -> ProgressBar
pub fn progress_bar(total: u64) -> ProgressBar
pub fn table(headers: &[&str], rows: &[Vec<String>])
Trait Implementations§
Source§impl Clone for CliService
impl Clone for CliService
Source§fn clone(&self) -> CliService
fn clone(&self) -> CliService
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 CliService
Auto Trait Implementations§
impl Freeze for CliService
impl RefUnwindSafe for CliService
impl Send for CliService
impl Sync for CliService
impl Unpin for CliService
impl UnsafeUnpin for CliService
impl UnwindSafe for CliService
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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