sitdown 0.1.0

Static site generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Serialize;

use crate::info::Info;

#[derive(Debug, Serialize)]
pub struct Header {
    link: String,
    title: String,
}

impl From<&Info> for Header {
    fn from(value: &Info) -> Self {
        Self {
            link: value.link.clone(),
            title: value.title.clone(),
        }
    }
}