/* * Snekdown - Custom Markdown flavour and parser * Copyright (C) 2021 Trivernis * See LICENSE for more information. */ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] pub struct ImportSettings { pub ignored_imports: Vec, pub included_stylesheets: Vec, pub included_bibliography: Vec, pub included_glossaries: Vec, } impl Default for ImportSettings { fn default() -> Self { Self { ignored_imports: Vec::with_capacity(0), included_stylesheets: vec!["style.css".to_string()], included_bibliography: vec!["Bibliography.toml".to_string()], included_glossaries: vec!["Glossary.toml".to_string()], } } }