surwiki/src/models.rs

13 lines
272 B
Rust
Raw Normal View History

2017-08-20 23:17:16 +03:00
use chrono;
#[derive(BartDisplay, Clone, Debug, Queryable)]
2017-08-21 00:44:52 +03:00
#[template="templates/article_revision.html"]
pub struct ArticleRevision {
pub article_id: i32,
2017-08-20 23:17:16 +03:00
pub revision: i32,
pub created: chrono::NaiveDateTime,
pub title: String,
pub body: String,
}