Organize code, begin database implementation
This commit is contained in:
parent
376fba6795
commit
4e9784baf4
7 changed files with 594 additions and 177 deletions
11
src/word.rs
Normal file
11
src/word.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Word {
|
||||
pub id: i64,
|
||||
pub word: String,
|
||||
pub reading: String,
|
||||
pub timestamp: DateTime<Utc>,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue