Skip to content

Commit

Permalink
Update config.rs (#91)
Browse files Browse the repository at this point in the history
added #[derive(Clone, Debug)]
  • Loading branch information
wcarmon authored Sep 26, 2024
1 parent f6cf3e8 commit 2635d5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmdapp/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
use std::str::FromStr;
use visioncortex::PathSimplifyMode;

#[derive(Clone, Debug)]
pub enum Preset {
Bw,
Poster,
Photo,
}

#[derive(Clone, Debug)]
pub enum ColorMode {
Color,
Binary,
}

#[derive(Clone, Debug)]
pub enum Hierarchical {
Stacked,
Cutout,
}

/// Converter config
#[derive(Clone, Debug)]
pub struct Config {
pub color_mode: ColorMode,
pub hierarchical: Hierarchical,
Expand All @@ -32,6 +36,7 @@ pub struct Config {
pub path_precision: Option<u32>,
}

#[derive(Clone, Debug)]
pub(crate) struct ConverterConfig {
pub color_mode: ColorMode,
pub hierarchical: Hierarchical,
Expand Down

0 comments on commit 2635d5b

Please sign in to comment.