nodeinfo
: Don't Serialize
, just Deserialize
for now
This commit is contained in:
parent
d964f1befc
commit
e5f52a760a
1 changed files with 3 additions and 4 deletions
|
@ -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<String>,
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue