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)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct HostMetaDocument {
|
pub struct HostMetaDocument {
|
||||||
/// The resource this document refers to.
|
/// The resource this document refers to.
|
||||||
|
#[serde(alias = "Subject")]
|
||||||
pub subject: Option<String>,
|
pub subject: Option<String>,
|
||||||
|
|
||||||
/// Links established between the [`Self::subject`] and other resources.
|
/// Links established between the [`Self::subject`] and other resources.
|
||||||
|
#[serde(alias = "Links")]
|
||||||
pub links: Vec<HostMetaLink>,
|
pub links: Vec<HostMetaLink>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue