From 23199adcefaa857a8288616c61b04575632dc0d2 Mon Sep 17 00:00:00 2001 From: Yuji Mise Date: Wed, 25 Dec 2024 11:08:51 +0900 Subject: [PATCH] feat: add allow_extra attribute to DataQualityAttribute struct and adjust method visibility in derive.rs --- nusamai-citygml/macros/src/derive.rs | 2 +- nusamai-plateau/src/models/iur/uro/common.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nusamai-citygml/macros/src/derive.rs b/nusamai-citygml/macros/src/derive.rs index 129437c1..c576ca25 100644 --- a/nusamai-citygml/macros/src/derive.rs +++ b/nusamai-citygml/macros/src/derive.rs @@ -391,7 +391,7 @@ fn generate_citygml_impl_for_struct( } #[inline(never)] - fn into_object(self) -> Option<::nusamai_citygml::object::Value> { + fn into_object(self) -> Option<::nusamai_citygml::object::Value> { #into_object_impl } diff --git a/nusamai-plateau/src/models/iur/uro/common.rs b/nusamai-plateau/src/models/iur/uro/common.rs index 5f4ae256..4abc1d2c 100644 --- a/nusamai-plateau/src/models/iur/uro/common.rs +++ b/nusamai-plateau/src/models/iur/uro/common.rs @@ -1,6 +1,7 @@ use nusamai_citygml::{citygml_data, CityGmlElement, Code, Date, Length, Measure, Point, Uri}; #[citygml_data(name = "uro:DataQualityAttribute")] +#[citygml(allow_extra)] pub struct DataQualityAttribute { // PLATEAU 3.x compatibility #[citygml(path = b"uro:srcScale")]