1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
use crate::style_options::StyleOptions; #[derive(Debug, Clone)] pub struct BlockOptions { pub block_type: Option<String>, pub style: Option<StyleOptions>, pub prefix: String, pub padding: bool, } /// Returns a default instance of `BlockOptions`. /// /// # Returns /// /// A `BlockOptions` instance with: /// - `block_type`: `None` /// - `style`: `None` /// - `prefix`: an empty string /// - `padding`: `false` impl Default for BlockOptions { fn default() -> Self { BlockOptions { block_type: None, style: None, prefix: "".to_string(), padding: false, } } }