lumina-framework 0.3.0

A beautiful, fast, and elegant web framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use lumina_macros::LuminaModel;
use serde::{Serialize, Deserialize};
use sqlx::FromRow;

#[derive(Debug, Serialize, Deserialize, FromRow, LuminaModel, Clone)]
#[table("categories")]
pub struct Category {
    pub id: i64,
    pub name: String,
    pub description: Option<String>,
}