1#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, clap::ValueEnum)]
3pub enum RenderFormat {
4 #[default]
6 Text,
7 Json,
9}
10
11#[derive(Debug, Default, Eq, PartialEq)]
13pub struct RenderOptions {
14 format: RenderFormat,
15 verbose: bool,
16}
17
18impl RenderOptions {
19 pub fn new() -> Self {
21 Self::default()
22 }
23
24 pub const fn format(&self) -> RenderFormat {
26 self.format
27 }
28
29 pub const fn verbose(&self) -> bool {
31 self.verbose
32 }
33
34 pub const fn set_format(mut self, format: RenderFormat) -> Self {
36 self.format = format;
37 self
38 }
39
40 pub const fn set_verbose(mut self, verbose: bool) -> Self {
42 self.verbose = verbose;
43 self
44 }
45}