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
use crate::db::surveys::UpdateSurveyData;

#[derive(Serialize, Deserialize, Clone)]
pub struct UpdateSurveyJSON {
    _token: Option<String>,
    title: Option<String>,
    published: Option<bool>,
    description: Option<String>,
    category: Option<String>,
}

impl From<UpdateSurveyJSON> for UpdateSurveyData {
    fn from(d: UpdateSurveyJSON) -> Self {
        let UpdateSurveyJSON {
            _token,
            title,
            published,
            description,
            category,
        } = d;
        Self {
            title,
            published,
            description,
            category,
        }
    }
}