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,