diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-16 10:08:51 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-16 10:08:51 +0200 |
commit | eb59714648bbba66e77955c8bda1c99caf1cede6 (patch) | |
tree | 5c194cd5e132c172e4cb510cc35bb46594f86f02 /crates/configuration/src/state/typology.rs | |
parent | 698633baa2505ffb60cb5bba588f8b360c767edd (diff) | |
download | warden-eb59714648bbba66e77955c8bda1c99caf1cede6.tar.bz2 warden-eb59714648bbba66e77955c8bda1c99caf1cede6.zip |
feat(config): typologies
Diffstat (limited to 'crates/configuration/src/state/typology.rs')
-rw-r--r-- | crates/configuration/src/state/typology.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/configuration/src/state/typology.rs b/crates/configuration/src/state/typology.rs new file mode 100644 index 0000000..1c7090a --- /dev/null +++ b/crates/configuration/src/state/typology.rs @@ -0,0 +1,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, + } + } +} |