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, } }