Struct log4rs::encode::Style
[−]
[src]
pub struct Style {
pub text: Option<Color>,
pub background: Option<Color>,
pub intense: Option<bool>,
// some fields omitted
}The style applied to text output.
Any fields set to None will be set to their default format, as defined
by the Writer.
Fields
text: Option<Color>
The text (or foreground) color.
background: Option<Color>
The background color.
intense: Option<bool>
True if the text should have increased intensity.
Methods
impl Style[src]
fn new() -> Style
Returns a Style with all fields set to their defaults.
fn text(&mut self, text: Color) -> &mut Style
Sets the text color.
fn background(&mut self, background: Color) -> &mut Style
Sets the background color.
fn intense(&mut self, intense: bool) -> &mut Style
Sets the text intensity.
Trait Implementations
impl Default for Style[src]
impl Clone for Style[src]
fn clone(&self) -> Style
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more