From e5f52a760abc27489f4c2741de888e880c0413d7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 9 Nov 2024 15:02:44 +0100 Subject: [PATCH] `nodeinfo`: Don't `Serialize`, just `Deserialize` for now --- acrate-nodeinfo/src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/acrate-nodeinfo/src/lib.rs b/acrate-nodeinfo/src/lib.rs index 728bd38..6dbf77d 100644 --- a/acrate-nodeinfo/src/lib.rs +++ b/acrate-nodeinfo/src/lib.rs @@ -3,13 +3,12 @@ //! [RFC 6415]: https://datatracker.ietf.org/doc/html/rfc6415 use reqwest::header::HeaderValue; -use serde::{Serialize, Deserialize}; +use serde::Deserialize; /// A [host-meta document]. /// /// [host-meta document]: https://datatracker.ietf.org/doc/html/rfc6415 -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(rename_all = "PascalCase")] +#[derive(Debug, Clone, Deserialize)] pub struct HostMetaDocument { /// The resource this document refers to. pub subject: Option, @@ -21,7 +20,7 @@ pub struct HostMetaDocument { /// A [host-meta Link Element], which puts the subject resource in relation with another. /// /// [host-meta Link Element]: https://datatracker.ietf.org/doc/html/rfc6415#section-3.1.1 -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Deserialize)] pub struct HostMetaLink { /// The kind of relation established by the subject with the attached resource. pub rel: String,