lithair-cli 0.4.0

CLI tool for scaffolding Lithair projects
1
2
3
4
5
6
7
8
9
10
11
12
use lithair_core::prelude::*;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, DeclarativeModel)]
pub struct Item {
    #[http(expose)]
    pub id: String,
    #[http(expose)]
    pub name: String,
    #[http(expose)]
    pub description: String,
}