use async_graphql::SimpleObject; use como_domain::projects::ProjectDto; use uuid::Uuid; #[derive(SimpleObject)] pub struct Project { pub id: Uuid, pub name: String, } impl From for Project { fn from(dto: ProjectDto) -> Self { Self { id: dto.id, name: dto.name, } } }