Use rf_region_encode module for rf_region in ULMetaData.

This commit is contained in:
Orne Brocaar 2022-08-25 10:43:36 +01:00
parent 75f67f8c5c
commit 46bc4d6038

View File

@ -942,7 +942,12 @@ pub struct ULMetaData {
pub f_ns_ul_token: Vec<u8>,
#[serde(rename = "RecvTime")]
pub recv_time: DateTime<Utc>,
#[serde(default, rename = "RFRegion", skip_serializing_if = "String::is_empty")]
#[serde(
default,
rename = "RFRegion",
with = "rf_region_encode",
skip_serializing_if = "String::is_empty"
)]
pub rf_region: String,
#[serde(rename = "GWCnt")]
pub gw_cnt: Option<usize>,