pub struct CliConfig {
pub color: Option<bool>,
pub markdown: Option<bool>,
pub approval: Approval,
pub history_size: usize,
pub clear_on_exit: ClearOnExit,
}Expand description
Terminal behaviour. Every field here is read by the CLI; a setting nothing reads is a lie in the starter config.
Fields§
§color: Option<bool>Colour. None means decide from the stream: a terminal, and NO_COLOR unset.
markdown: Option<bool>Markdown in replies. None means on when colour is on, off when piping.
approval: ApprovalWhat an ask policy does. "ask" prompts, "auto" never does, "smart" asks the aux
route first and escalates to you when it is unsure.
history_size: usizeHow many commands the REPL remembers for arrow-up.
clear_on_exit: ClearOnExitWhat an interactive exit does to the screen.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CliConfig
impl<'de> Deserialize<'de> for CliConfig
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 CliConfig
impl StructuralPartialEq for CliConfig
Auto Trait Implementations§
impl Forget for CliConfig
impl Freeze for CliConfig
impl Move 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<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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.