From cf344b92d2c918660b6726df02c683b5d66ad4c9 Mon Sep 17 00:00:00 2001 From: Christian Kongsgaard Date: Mon, 9 Sep 2024 14:50:47 +0200 Subject: [PATCH] fix: added more options to building typology, building type and roof type resolves #72 resolves #73 --- modules/models/src/project.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/models/src/project.rs b/modules/models/src/project.rs index 0515602..dc2dd24 100644 --- a/modules/models/src/project.rs +++ b/modules/models/src/project.rs @@ -171,6 +171,7 @@ pub enum RoofType { PITCHED, SADDLE, PYRAMID, + UNKNOWN, OTHER, } @@ -233,6 +234,7 @@ pub enum BuildingType { #[allow(non_camel_case_types)] FIT_OUT_WORKS, OPERATIONS, + UNKNOWN, OTHER, } @@ -247,6 +249,9 @@ pub enum BuildingTypology { INDUSTRIAL, INFRASTRUCTURE, AGRICULTURAL, + EDUCATIONAL, + HEALTH, + UNKNOWN, OTHER, } @@ -260,6 +265,8 @@ impl From<&String> for BuildingTypology { "industrial" => BuildingTypology::INDUSTRIAL, "infrastructure" => BuildingTypology::INFRASTRUCTURE, "agricultural" => BuildingTypology::AGRICULTURAL, + "educational" => BuildingTypology::EDUCATIONAL, + "health" => BuildingTypology::HEALTH, _ => BuildingTypology::OTHER, } }