pub struct LimitlessConfig {
pub preferred_stack: Option<ProjectStack>,
pub auto_approve_safe_fixes: bool,
pub color_enabled: bool,
pub animation_enabled: bool,
pub verbose_mode: bool,
}Expand description
User preferences, persisted as config.json.
use limitless_cli::modules::config::{LimitlessConfig, default_config};
let config = default_config();
assert_eq!(config.auto_approve_safe_fixes, false);
assert_eq!(config.color_enabled, true);
assert_eq!(config.animation_enabled, true);
assert_eq!(config.verbose_mode, false);Fields§
§preferred_stack: Option<ProjectStack>The stack the user prefers to target, when the current directory is ambiguous or not a project (null = auto-detect).
auto_approve_safe_fixes: boolApply safe, reversible fixes without asking first.
color_enabled: boolUse ANSI colors in terminal output.
animation_enabled: boolShow progress animations (spinners / progress bars).
verbose_mode: boolShow technical details by default.
Trait Implementations§
Source§impl Clone for LimitlessConfig
impl Clone for LimitlessConfig
Source§impl Debug for LimitlessConfig
impl Debug for LimitlessConfig
Source§impl Default for LimitlessConfig
impl Default for LimitlessConfig
Source§impl<'de> Deserialize<'de> for LimitlessConfigwhere
LimitlessConfig: Default,
impl<'de> Deserialize<'de> for LimitlessConfigwhere
LimitlessConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LimitlessConfig
Source§impl PartialEq for LimitlessConfig
impl PartialEq for LimitlessConfig
Source§impl Serialize for LimitlessConfig
impl Serialize for LimitlessConfig
impl StructuralPartialEq for LimitlessConfig
Auto Trait Implementations§
impl Forget for LimitlessConfig
impl Freeze for LimitlessConfig
impl RefUnwindSafe for LimitlessConfig
impl Send for LimitlessConfig
impl Sync for LimitlessConfig
impl Unpin for LimitlessConfig
impl UnsafeUnpin for LimitlessConfig
impl UnwindSafe for LimitlessConfig
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