pub struct Theme {Show 21 fields
pub generation: u64,
pub normal: Style,
pub user: Style,
pub assistant: Style,
pub markdown_heading: Style,
pub markdown_quote: Style,
pub markdown_code: Style,
pub markdown_inline_code: Style,
pub markdown_link: Style,
pub markdown_list_marker: Style,
pub thinking: Style,
pub tool: Style,
pub success: Style,
pub warning: Style,
pub error: Style,
pub information: Style,
pub approval: Style,
pub notification: Style,
pub editor: Style,
pub composer: Style,
pub footer: Style,
/* private fields */
}Expand description
Small semantic terminal palette independent of durable state.
Fields§
§generation: u64Monotonic identifier included in render-cache keys.
normal: StyleNormal transcript text.
user: StyleUser-authored text.
assistant: StyleAssistant-authored text.
markdown_heading: StyleMarkdown heading text.
markdown_quote: StyleMarkdown quote text.
markdown_code: StyleMarkdown fenced or indented code.
markdown_inline_code: StyleMarkdown inline code.
markdown_link: StyleMarkdown link labels and visible fallback targets.
markdown_list_marker: StyleMarkdown ordered and unordered list markers.
thinking: StyleReasoning text.
tool: StyleTool activity.
success: StyleSuccessful lifecycle or result output.
warning: StyleWarning lifecycle or notice output.
error: StyleFailed lifecycle or result output.
information: StyleLow-salience informational output.
approval: StyleApproval warning.
notification: StyleError/notification text.
editor: StyleEditor input.
composer: StyleFull-width low-contrast editor surface.
Footer statistics.
Trait Implementations§
impl Copy for Theme
impl Eq for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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,
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
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