puerto 0.19.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.
use async_trait::async_trait;
use business::domain::greeting::{model::Greeting, repository::GreetingRepositoryTrait};
use puerto_core::RepositoryError;

#[derive(Default)]
pub struct InMemoryGreetingRepository;

impl InMemoryGreetingRepository {
    pub fn new() -> Self {
        Self
    }
}

#[async_trait]
impl GreetingRepositoryTrait for InMemoryGreetingRepository {
    async fn find_by_name(&self, name: &str) -> Result<Option<Greeting>, RepositoryError> {
        tracing::debug!(name, "find_by_name");
        Ok(None)
    }
}