metamorphose 1.0.0-beta

Macros collection for converting Structure to Model, for a mango-orm project.
Documentation

Logo

Metamorphose

Macros collection for converting Structure to Model, for a Green Barrel project.

crates.io crates.io crates.io crates.io

Macros

Model

Macro for converting Structure to green-barrel Model. The model can access the database. The model can create, update, and delete documents in collections.

Requirements

Changelog

  • v1.0.0-beta Not compatible with version 0.x.x
  • v0.7.12 Fixed README.md.
  • v0.7.8 Fixed validation for multi-select fields.
  • v0.7.0 Added trait Administrator for easier registration of Models in the administration panel.
  • v0.6.10 Added the ability to customize html code for web forms. See documentation: mango_orm > widgets > generate_html_code > GenerateHtmlCode > generate_html().
  • v0.6.9 Rename trait ToModel to Main.
  • v0.6.0 The created_at and updated_at fields are automatically added to the Model. The widget type is inputDateTime and disabled = true, is_hide = true. Updated README.md. Updated documentation.
  • v0.5.4 Fixed ModelName::key() method. See documentation: mango_orm > models > ToModel.
  • v0.5.2 Import optimized.
  • v0.5.0 Added model attribute is_use_hooks. See documentation: mango_orm > models > hooks > Hooks.
  • v0.4.8 Fixed error message text.
  • v0.4.6 Updating by version of dependencies.
  • v0.4.4 Optimization of the validation mechanism.
  • v0.4.3 Improved validation for Slug fields.
  • v0.4.2 Removed hiddenSlug field.
  • v0.4.1 Added is_hide parameter for Widgets.
  • v0.4 Added inputSlug and hiddenSlug fields.
  • v0.3 Removed the Form macro.

License

This project is licensed under the MIT and Apache Version 2.0