birdseed 0.2.0

birdseed enables you to seed a libellis database with fake data, clear all tables, or rebuild all tables per the current embedded migrations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::schema::*;
use diesel_geography::types::GeogPoint;

#[derive(Queryable)]
pub struct Fence {
    pub title: String,
    pub geo_level: i32,
    pub geo: GeogPoint,
}

#[derive(Insertable)]
#[table_name = "fences"]
pub struct NewFence<'a> {
    pub title: &'a str,
    pub geo_level: i32,
    pub geo: GeogPoint,
}