2017-08-20 23:17:16 +03:00
|
|
|
use chrono;
|
|
|
|
|
2017-08-26 00:57:06 +03:00
|
|
|
#[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,
|
|
|
|
}
|