NodeInfo

Type Alias NodeInfo 

Source
pub type NodeInfo<'a> = NodeInfoInternal<&'a str>;

Aliased Type§

pub struct NodeInfo<'a> {
    pub version: &'a str,
    pub software: Software<&'a str>,
    pub protocols: Vec<&'a str>,
    pub services: Services<&'a str>,
    pub open_registrations: bool,
    pub usage: Usage,
    pub metadata: Map<String, Value>,
}

Fields§

§version: &'a str§software: Software<&'a str>§protocols: Vec<&'a str>§services: Services<&'a str>§open_registrations: bool§usage: Usage§metadata: Map<String, Value>

Implementations§

Source§

impl NodeInfo<'_>

Source

pub fn to_owned(&self) -> NodeInfoOwned

Converts all internal &strs into Strings.