pub struct CavemanConfig {
pub default_on: bool,
}Expand description
Output style configuration for caveman ultra-compressed mode ([caveman]).
When default_on = true every new session starts in caveman mode. The mode can also be
toggled at runtime via the /caveman command or activated by the bundled caveman skill.
All fields have #[serde(default)] so existing configs parse without changes.
§Examples
use zeph_config::CavemanConfig;
let cfg = CavemanConfig::default();
assert!(!cfg.default_on);Fields§
§default_on: boolStart every session in ultra-compressed (telegraphic) output mode.
Default: false (opt-in). Can be toggled at runtime with /caveman [on|off].
Trait Implementations§
Source§impl Clone for CavemanConfig
impl Clone for CavemanConfig
Source§fn clone(&self) -> CavemanConfig
fn clone(&self) -> CavemanConfig
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 CavemanConfig
impl Debug for CavemanConfig
Source§impl Default for CavemanConfig
impl Default for CavemanConfig
Source§fn default() -> CavemanConfig
fn default() -> CavemanConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CavemanConfig
impl<'de> Deserialize<'de> for CavemanConfig
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 CavemanConfig
impl RefUnwindSafe for CavemanConfig
impl Send for CavemanConfig
impl Sync for CavemanConfig
impl Unpin for CavemanConfig
impl UnsafeUnpin for CavemanConfig
impl UnwindSafe for CavemanConfig
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