Crate nodeinfo_upub

Crate nodeinfo_upub 

Source

Re-exports§

pub use types::LegacyNodeInfo;
pub use types::NodeInfo;
pub use types::NodeInfoOwned;

Modules§

types

Enums§

NodeInfoError
Errors that can occur when serializing or deserializing nodeinfo JSON.

Functions§

deserialize
Deserialize a nodeinfo JSON string into the NodeInfo struct. It can handle versions from v1.0 up to v2.1.
deserialize_owned
Deserialize a nodeinfo JSON string into the NodeInfoOwned struct. It can handle versions from v1.0 up to v2.1.
serialize
Serialize a NodeInfo struct into a JSON String. Just a wrapper for serde.