aboutsummaryrefslogtreecommitdiff
path: root/src/post/schemaorg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/post/schemaorg.rs')
-rw-r--r--src/post/schemaorg.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/post/schemaorg.rs b/src/post/schemaorg.rs
new file mode 100644
index 0000000..18c238a
--- /dev/null
+++ b/src/post/schemaorg.rs
@@ -0,0 +1,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,
+}