fbc-starter 0.1.24

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
11
12
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

use crate::entity::super_entity::SuperEntity;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Entity<T> {
    #[serde(flatten)]
    pub super_entity: SuperEntity<T>,
    pub update_time: DateTime<Utc>,
    pub update_by: T,
}