puerto 0.10.1

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
8
9
10
11
use async_trait::async_trait;

use crate::domain::{{ snake }}::{errors::{{ pascal }}Error, model::{{ pascal }}};

#[derive(Debug)]
pub struct List{{ pascal }}Params;

#[async_trait]
pub trait List{{ pascal }}UseCaseTrait: Send + Sync {
    async fn execute(&self, params: List{{ pascal }}Params) -> Result<Vec<{{ pascal }}>, {{ pascal }}Error>;
}