1
Fork 0

nodeinfo: Alias PascalCase tags to snake_case ones

This commit is contained in:
Steffo 2024-11-09 15:03:54 +01:00
parent e5f52a760a
commit ee2f386cf0
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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<String>,
/// Links established between the [`Self::subject`] and other resources.
#[serde(alias = "Links")]
pub links: Vec<HostMetaLink>,
}