pub struct Config {
pub interactive: bool,
pub auto_yes: bool,
pub color: ColorMode,
pub format: Format,
pub level: Level,
}Expand description
Global configuration for Ui behavior and rendering.
Customize output format, interactivity, colors, and logging verbosity.
§Examples
use scriba::{Config, Format, Level, ColorMode};
let config = Config {
format: Format::Markdown,
interactive: true,
level: Level::Verbose,
color: ColorMode::Always,
auto_yes: false,
};Fields§
§interactive: boolEnable interactive prompts (requires a TTY).
auto_yes: boolAuto-confirm prompts (useful for CI/CD).
color: ColorModeColor output mode.
format: FormatOutput format.
level: LevelVerbosity level for logging.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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