crcnt_ddd_macros

Crates.iocrcnt_ddd_macros
lib.rscrcnt_ddd_macros
version0.2.10
sourcesrc
created_at2022-12-20 16:09:35.140369
updated_at2023-04-16 20:25:07.30016
descriptionCRCNT DDD Basic Macro
homepagehttps://github.com/CRCNT/crcnt_ddd/tree/main/macros
repositoryhttps://github.com/CRCNT/crcnt_ddd/tree/main/macros
max_upload_size
id742438
size71,817
Zenas (zenas0810)

documentation

https://github.com/CRCNT/crcnt_ddd/tree/main/macros

README

CRCNT Macros

Sample

use crcnt_ddd_macros::Domain;

#[derive(Domain)]
#[domain_commands(entity, store)]
#[domain_store(table_name = "t_rice", params_extractor = "super::mysql_tools::params_inspect")]
struct __Rice__ {
    id:          String,
    name:        String,
    #[domain_value(skip_new_type = true)]
    create_time: CreateAt,
    update_time: UpdateAt,
    #[domain_value(skip_new_type = true)]
    creator:     Creator,
    updater:     Updater,
    deleted:     Deleted,
}
Commit count: 0

cargo fmt