color_output/output/struct.rs
1use crate::*;
2
3/// Represents a colored text output with formatting options.
4///
5/// [Official Documentation](https://docs.ltpp.vip/COLOR-OUTPUT/)
6#[derive(Debug, Clone)]
7pub struct Output<'a> {
8 /// The text content to output.
9 pub text: &'a str,
10 /// The text color.
11 pub color: ColorType,
12 /// The background color.
13 pub bg_color: ColorType,
14 /// Whether the text should be bold.
15 pub blod: bool,
16 /// Whether to add a newline after the text.
17 pub endl: bool,
18}