blob: 1c7090abd2bab750654812990af8f5580ec8a818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use warden_core::configuration::typology::{TypologyConfiguration, TypologyConfigurationRequest};
use crate::state::cache_key::CacheKey;
pub mod mutate_typology;
pub mod query_typology;
pub struct TypologyRow {
pub configuration: sqlx::types::Json<TypologyConfiguration>,
}
impl<'a> From<&'a TypologyConfigurationRequest> for CacheKey<'a> {
fn from(value: &'a TypologyConfigurationRequest) -> Self {
Self::Typology {
id: &value.id,
version: &value.version,
}
}
}
|