From 8b5408f21e247865e9a98c958f6191d1fe3cc59a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 16 Nov 2024 01:41:57 +0100 Subject: [PATCH] `hostmeta`: Property.r#type to Property.rel --- acrate-hostmeta/src/jrd.rs | 2 +- acrate-hostmeta/src/xrd.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/acrate-hostmeta/src/jrd.rs b/acrate-hostmeta/src/jrd.rs index 7662b80..f893bc0 100644 --- a/acrate-hostmeta/src/jrd.rs +++ b/acrate-hostmeta/src/jrd.rs @@ -219,7 +219,7 @@ impl From for ResourceDescriptorLinkJRD { impl From for (String, Option) { fn from(value: ResourceDescriptorPropertyXRD) -> Self { - (value.r#type, value.value) + (value.rel, value.value) } } diff --git a/acrate-hostmeta/src/xrd.rs b/acrate-hostmeta/src/xrd.rs index 546eb2d..0a66887 100644 --- a/acrate-hostmeta/src/xrd.rs +++ b/acrate-hostmeta/src/xrd.rs @@ -133,8 +133,8 @@ pub struct ResourceDescriptorTitleXRD { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ResourceDescriptorPropertyXRD { /// The property identifier, or type. - #[serde(rename = "@type")] - pub r#type: String, + #[serde(rename = "@rel")] + pub rel: String, /// The property value. #[serde(rename = "$text")] @@ -236,7 +236,7 @@ impl From for ResourceDescriptorXRD { impl From<(String, Option)> for ResourceDescriptorPropertyXRD { fn from(value: (String, Option)) -> Self { Self { - r#type: value.0, + rel: value.0, value: value.1, } }