lariv-rs 0.1.0

Compile-time plugin web application framework built on Axum, SeaORM, Maud, and HTMX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use sea_orm::DatabaseConnection;

#[derive(Clone)]
pub struct ProductsState {
    pub db: DatabaseConnection,
}

impl ProductsState {
    pub fn new(db: DatabaseConnection) -> Self {
        Self { db }
    }
}