snekdown 0.33.4

A parser for the custom snekdown markdown syntax
Documentation
/*
 * 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 MetadataSettings {
    pub title: Option<String>,
    pub author: Option<String>,
    pub description: Option<String>,
    pub keywords: Vec<String>,
    pub language: String,
}

impl Default for MetadataSettings {
    fn default() -> Self {
        Self {
            title: None,
            author: None,
            description: None,
            keywords: Vec::new(),
            language: "en".to_string(),
        }
    }
}