puerto 0.23.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 crate::errores::Error{{ v.vo }};
{% 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="Error" ~ v.vo, invalid="Error" ~ v.vo ~ "::Invalido") }}{% endfor %}