aboutsummaryrefslogtreecommitdiff
path: root/src/post/schemaorg.rs
blob: 18c238a8aac69ebd9c3e66ba11e49e2db67696e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Eq, PartialEq, Debug, Clone, Serialize, Deserialize)]
pub struct Article {
    #[serde(rename = "@context")]
    pub context: String,
    #[serde(rename = "@type")]
    pub r#type: String,
    pub headline: String,
    pub image: String,
    pub url: String,
    #[serde(rename = "datePublished")]
    pub date_published: String,
}