From 216cf39e66924ca9ce5aedf11954d9f1d9fd31fc Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 12 Nov 2024 02:50:53 +0100 Subject: [PATCH] `nodeinfo`: Loosen requirements further --- acrate-nodeinfo/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/acrate-nodeinfo/src/lib.rs b/acrate-nodeinfo/src/lib.rs index 0123a3d..65ef028 100644 --- a/acrate-nodeinfo/src/lib.rs +++ b/acrate-nodeinfo/src/lib.rs @@ -36,16 +36,16 @@ pub struct NodeInfo1 { pub software: NodeInfo1Software, /// The protocols supported on this server. - pub protocols: NodeInfo1Protocols, + pub protocols: Option, /// The third party sites this server can connect to via their application API. - pub services: NodeInfo1Services, + pub services: Option, /// Whether this server allows open self-registration. - pub open_registrations: bool, + pub open_registrations: Option, /// Usage statistics for this server. - pub usage: NodeInfo1Usage, + pub usage: Option, /// Free form key value pairs for software specific values. /// @@ -71,16 +71,16 @@ pub struct NodeInfo2 { pub instance: Option, /// Metadata about server software in use. - pub software: NodeInfo1Software, + pub software: Option, /// The protocols supported on this server. - pub protocols: Vec, + pub protocols: Option>, /// The third party sites this server can connect to via their application API. pub services: Option, /// Whether this server allows open self-registration. - pub open_registrations: bool, + pub open_registrations: Option, /// Usage statistics for this server. pub usage: Option, @@ -161,7 +161,7 @@ pub struct NodeInfo2Instance { pub name: String, /// If supported by the software, the administrator-configured long form description of this instance. - pub description: String, + pub description: Option, } impl NodeInfo {