pub struct CliConfig {
pub output_format: OutputFormat,
pub verbosity: VerbosityLevel,
pub color_mode: ColorMode,
pub interactive: bool,
pub profile_override: Option<String>,
}Fields§
§output_format: OutputFormat§verbosity: VerbosityLevel§color_mode: ColorMode§interactive: bool§profile_override: Option<String>Implementations§
Source§impl CliConfig
impl CliConfig
pub fn new() -> Self
pub const fn with_output_format(self, format: OutputFormat) -> Self
pub const fn with_verbosity(self, level: VerbosityLevel) -> Self
pub const fn with_color_mode(self, mode: ColorMode) -> Self
pub const fn with_interactive(self, interactive: bool) -> Self
pub fn with_profile_override(self, profile: Option<String>) -> Self
pub fn should_use_color(&self) -> bool
pub fn is_json_output(&self) -> bool
pub fn should_show_verbose(&self) -> bool
pub fn is_interactive(&self) -> bool
pub const fn output_format(&self) -> OutputFormat
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnsafeUnpin for CliConfig
impl UnwindSafe for CliConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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