1const ATTR_PREFIX: &str = "-";
2const CONTENT_PREFIX: &str = "#";
3
4#[derive(Debug)]
5pub struct ConvertConfig {
6 pub attribute_prefix: String,
8 pub content_prefix: String,
10}
11
12impl ConvertConfig {
13 pub fn init(attribute_prefix: String, content_prefix: String) -> Self {
14 Self {
15 attribute_prefix,
16 content_prefix,
17 }
18 }
19}
20
21impl Default for ConvertConfig {
22 fn default() -> Self {
23 ConvertConfig {
24 attribute_prefix: ATTR_PREFIX.to_string(),
25 content_prefix: CONTENT_PREFIX.to_string(),
26 }
27 }
28}