pub struct CocoonConfig {
pub show_balance: bool,
}Expand description
Cocoon-level display and behaviour settings.
These options govern how Cocoon-specific information is presented in the TUI.
They are independent of the Cocoon LLM provider entry in [[llm.providers]].
§Examples
[cocoon]
show_balance = false # redact TON balance in the TUI status barFields§
§show_balance: boolShow the Cocoon TON balance in the TUI status bar.
When false, the balance is rendered as *** TON instead of the real
value, implementing the redaction option described in spec §15.2.
Default is true (balance visible), matching the current behaviour.
Trait Implementations§
Source§impl Clone for CocoonConfig
impl Clone for CocoonConfig
Source§fn clone(&self) -> CocoonConfig
fn clone(&self) -> CocoonConfig
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 moreSource§impl Debug for CocoonConfig
impl Debug for CocoonConfig
Source§impl Default for CocoonConfig
impl Default for CocoonConfig
Source§impl<'de> Deserialize<'de> for CocoonConfig
impl<'de> Deserialize<'de> for CocoonConfig
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
Auto Trait Implementations§
impl Freeze for CocoonConfig
impl RefUnwindSafe for CocoonConfig
impl Send for CocoonConfig
impl Sync for CocoonConfig
impl Unpin for CocoonConfig
impl UnsafeUnpin for CocoonConfig
impl UnwindSafe for CocoonConfig
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