Skip to main content

Module model

Module model 

Source
Expand description

模型定义系统模块

参考mongoengine的设计,支持通过结构体定义数据表结构 提供字段类型、验证、索引等功能

Re-exports§

pub use conversion::ToDataValue;
pub use data_conversion::create_model_from_data_map;
pub use data_conversion::create_model_from_data_map_with_debug;
pub use field_types::FieldDefinition;
pub use field_types::FieldType;
pub use field_types::IndexDefinition;
pub use field_types::ModelMeta;
pub use manager::ModelManager;
pub use traits::Model;
pub use traits::ModelOperations;
pub use convenience::*;
pub use macros::*;

Modules§

convenience
模型便捷函数模块
conversion
数据转换模块
data_conversion
模型数据转换模块
field_types
字段类型定义模块
macros
模型相关的宏定义
manager
ModelManager 实现模块
traits
Model trait 定义模块