fbc-starter 0.1.23

A production-ready web server starter for Rust based on Axum, with built-in configuration, logging, CORS, database and Redis support
Documentation
1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};

use crate::entity::entity::Entity;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TanentEntity<T> {
    #[serde(flatten)]
    pub entity: Entity<T>,
    pub tenant_id: i64,
}