nodeinfo
: Alias PascalCase tags to snake_case ones
This commit is contained in:
parent
e5f52a760a
commit
ee2f386cf0
1 changed files with 2 additions and 0 deletions
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue