Compare commits

..

No commits in common. "676b81eca40cdae7d4362271c1d7f2faedccf803" and "be740ddbbd94200781f15ce389055413988ae2c3" have entirely different histories.

2 changed files with 8 additions and 13 deletions

View file

@ -7,7 +7,3 @@
Federation database Federation database
</div> </div>
> [!Caution]
>
> This software suite is in active development!

View file

@ -5,7 +5,6 @@
//! # Specification //! # Specification
//! //!
//! - <https://github.com/jhass/nodeinfo/blob/main/PROTOCOL.md> //! - <https://github.com/jhass/nodeinfo/blob/main/PROTOCOL.md>
//! - <https://codeberg.org/fediverse/fep/src/branch/main/fep/f1d5/fep-f1d5.md>
use serde::Deserialize; use serde::Deserialize;
@ -37,16 +36,16 @@ pub struct NodeInfo1 {
pub software: NodeInfo1Software, pub software: NodeInfo1Software,
/// The protocols supported on this server. /// The protocols supported on this server.
pub protocols: Option<NodeInfo1Protocols>, pub protocols: NodeInfo1Protocols,
/// The third party sites this server can connect to via their application API. /// The third party sites this server can connect to via their application API.
pub services: Option<NodeInfo1Services>, pub services: NodeInfo1Services,
/// Whether this server allows open self-registration. /// Whether this server allows open self-registration.
pub open_registrations: Option<bool>, pub open_registrations: bool,
/// Usage statistics for this server. /// Usage statistics for this server.
pub usage: Option<NodeInfo1Usage>, pub usage: NodeInfo1Usage,
/// Free form key value pairs for software specific values. /// Free form key value pairs for software specific values.
/// ///
@ -72,16 +71,16 @@ pub struct NodeInfo2 {
pub instance: Option<NodeInfo2Instance>, pub instance: Option<NodeInfo2Instance>,
/// Metadata about server software in use. /// Metadata about server software in use.
pub software: Option<NodeInfo1Software>, pub software: NodeInfo1Software,
/// The protocols supported on this server. /// The protocols supported on this server.
pub protocols: Option<Vec<String>>, pub protocols: Vec<String>,
/// The third party sites this server can connect to via their application API. /// The third party sites this server can connect to via their application API.
pub services: Option<NodeInfo1Services>, pub services: Option<NodeInfo1Services>,
/// Whether this server allows open self-registration. /// Whether this server allows open self-registration.
pub open_registrations: Option<bool>, pub open_registrations: bool,
/// Usage statistics for this server. /// Usage statistics for this server.
pub usage: Option<NodeInfo1Usage>, pub usage: Option<NodeInfo1Usage>,
@ -162,7 +161,7 @@ pub struct NodeInfo2Instance {
pub name: String, pub name: String,
/// If supported by the software, the administrator-configured long form description of this instance. /// If supported by the software, the administrator-configured long form description of this instance.
pub description: Option<String>, pub description: String,
} }
impl NodeInfo { impl NodeInfo {