pub struct ValueDisplayConfig {
pub mode: ValueDisplayMode,
pub statusline: StatuslineStyle,
pub recap_every_turns: u32,
pub recap_min_tokens: u64,
pub notifications: bool,
pub git_trailer: bool,
}Fields§
§mode: ValueDisplayModeOverride via LEAN_CTX_VALUE_DISPLAY.
statusline: StatuslineStyleClaude Code status line style: brand or subtle.
recap_every_turns: u32A turn recap is considered every N agent turns.
recap_min_tokens: u64…and only shown when the window saved at least this many tokens (or a security event happened).
notifications: boolOS notifications for milestones (at most one per day) in mode
milestones or verbose; false silences them there.
git_trailer: boolOpt-in lean-ctx: trailer in commit messages.
Implementations§
Source§impl ValueDisplayConfig
impl ValueDisplayConfig
Sourcepub fn effective_mode(&self) -> ValueDisplayMode
pub fn effective_mode(&self) -> ValueDisplayMode
The configured mode, with LEAN_CTX_VALUE_DISPLAY taking precedence.
Trait Implementations§
Source§impl Clone for ValueDisplayConfig
impl Clone for ValueDisplayConfig
Source§impl Debug for ValueDisplayConfig
impl Debug for ValueDisplayConfig
Source§impl Default for ValueDisplayConfig
impl Default for ValueDisplayConfig
Source§impl<'de> Deserialize<'de> for ValueDisplayConfigwhere
ValueDisplayConfig: Default,
impl<'de> Deserialize<'de> for ValueDisplayConfigwhere
ValueDisplayConfig: 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 ValueDisplayConfig
Source§impl PartialEq for ValueDisplayConfig
impl PartialEq for ValueDisplayConfig
Source§impl Serialize for ValueDisplayConfig
impl Serialize for ValueDisplayConfig
impl StructuralPartialEq for ValueDisplayConfig
Auto Trait Implementations§
impl Forget for ValueDisplayConfig
impl Freeze for ValueDisplayConfig
impl Move for ValueDisplayConfig
impl RefUnwindSafe for ValueDisplayConfig
impl Send for ValueDisplayConfig
impl Sync for ValueDisplayConfig
impl Unpin for ValueDisplayConfig
impl UnsafeUnpin for ValueDisplayConfig
impl UnwindSafe for ValueDisplayConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more