color_output/output_list/
struct.rs

1use crate::Output;
2
3/// OutputList struct
4///
5/// [Official Documentation](https://docs.ltpp.vip/COLOR-OUTPUT/),
6///
7/// # Code Example
8///
9/// ## Using the Struct
10///
11/// ### Using the output Method
12///
13/// ```rust
14/// use color_output::*;
15/// OutputList(vec![
16///     Output {
17///         text: "test_output_list_struct_1",
18///         color: ColorType::Use(Color::Default),
19///         bg_color: ColorType::Color256(0x000000),
20///         endl: false,
21///         ..Default::default()
22///     },
23///     Output {
24///         text: "test_output_struct_output_2",
25///         color: ColorType::Use(Color::Default),
26///         bg_color: ColorType::Use(Color::Blue),
27///         endl: true,
28///         ..Default::default()
29///     },
30/// ])
31/// .output();
32/// ```
33#[derive(Debug, Clone)]
34pub struct OutputList<'a>(pub Vec<Output<'a>>);