aboutsummaryrefslogblamecommitdiffstats
path: root/src/models.rs
blob: 110cabe17abd46600d41d5ce137426852d18f852 (plain) (tree)
1
2
3
4
5
6
7






                        
#[derive(Queryable)]
pub struct Post {
    pub id: i32,
    pub title: String,
    pub body: String,
    pub published: bool,
}