puerto 0.14.0

Puerto — Rust full-stack DDD framework CLI. Scaffolds Clean Architecture projects with auto-wired DI, SQLx support, and zero manual wiring. Formerly puerto-framework.
1
2
3
4
5
6
7
{% import "domain/value_object_macros.tera" as macros %}{% for v in vos %}{% if not loop.first %}

{% endif %}use super::errors::{{ v.vo }}Error;
{% if v.inner == "Uuid" %}use uuid::Uuid;
{% elif v.inner == "DateTime<Utc>" %}use chrono::{DateTime, Utc};
{% endif %}
{{ macros::value_object(vo=v.vo, inner=v.inner, error=v.vo ~ "Error", invalid=v.vo ~ "Error::Invalid") }}{% endfor %}