framework_cqrs_lib/cqrs/models/views/mod.rs
use std::collections::HashMap;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
pub mod command_handler_view;
pub mod entities;
#[derive(Serialize, Deserialize, Clone, Debug, ToSchema)]
pub struct DataWrapperView<T>
where
T: Serialize + Clone,
{
pub data: T,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct LinkView {
#[serde(flatten)]
pub links: HashMap<String, String>,
}