Skip to main content

agtrace_sdk/query/
project.rs

1//! Project query types.
2
3use serde::Serialize;
4
5use crate::types::ProjectInfo;
6
7#[derive(Debug, Serialize)]
8#[serde(transparent)]
9pub struct ProjectInfoViewModel(pub Vec<ProjectInfo>);
10
11impl ProjectInfoViewModel {
12    pub fn new(projects: Vec<ProjectInfo>) -> Self {
13        Self(projects)
14    }
15}