#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, clap::ValueEnum)]
pub enum RenderFormat {
#[default]
Text,
Json,
}
#[derive(Debug, Default, Eq, PartialEq)]
pub struct RenderOptions {
format: RenderFormat,
verbose: bool,
}
impl RenderOptions {
pub fn new() -> Self {
Self::default()
}
pub const fn format(&self) -> RenderFormat {
self.format
}
pub const fn verbose(&self) -> bool {
self.verbose
}
pub const fn set_format(mut self, format: RenderFormat) -> Self {
self.format = format;
self
}
pub const fn set_verbose(mut self, verbose: bool) -> Self {
self.verbose = verbose;
self
}
}