pub struct Theme {
pub success: Style,
pub error: Style,
pub warning: Style,
pub info: Style,
pub accent: Style,
pub muted: Style,
pub highlight: Style,
pub table_header: Style,
}Expand description
Theme for consistent CLI styling
Fields§
§success: Style§error: Style§warning: Style§info: Style§accent: Style§muted: Style§highlight: Style§table_header: StyleImplementations§
Source§impl Theme
impl Theme
pub fn success_icon(&self) -> StyledObject<&str>
pub fn error_icon(&self) -> StyledObject<&str>
pub fn warning_icon(&self) -> StyledObject<&str>
pub fn info_icon(&self) -> StyledObject<&str>
pub fn success(&self) -> &Style
pub fn error(&self) -> &Style
pub fn warning(&self) -> &Style
pub fn info(&self) -> &Style
pub fn accent(&self) -> &Style
pub fn muted(&self) -> &Style
pub fn highlight(&self) -> &Style
pub fn table_header(&self) -> &Style
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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