From ee2f386cf064174db9040fc00a36802559fbd6e7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 9 Nov 2024 15:03:54 +0100 Subject: [PATCH] `nodeinfo`: Alias PascalCase tags to snake_case ones --- acrate-nodeinfo/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acrate-nodeinfo/src/lib.rs b/acrate-nodeinfo/src/lib.rs index 6dbf77d..c7167b1 100644 --- a/acrate-nodeinfo/src/lib.rs +++ b/acrate-nodeinfo/src/lib.rs @@ -11,9 +11,11 @@ use serde::Deserialize; #[derive(Debug, Clone, Deserialize)] pub struct HostMetaDocument { /// The resource this document refers to. + #[serde(alias = "Subject")] pub subject: Option, /// Links established between the [`Self::subject`] and other resources. + #[serde(alias = "Links")] pub links: Vec, }