running so far

This commit is contained in:
2022-12-27 18:17:24 +01:00
parent 31b47e892d
commit 8b121c9e6e
16 changed files with 134 additions and 18 deletions
+16
View File
@@ -0,0 +1,16 @@
use serde::Serialize;
#[derive(Serialize)]
pub struct Article {
pub title: String,
pub content: String,
}
impl Article {
pub fn new(title: &str, content: &str) -> Article {
Article {
title: title.to_string(),
content: content.to_string(),
}
}
}