Struct nri::web::Service [-] [+] [src]

struct Service {
    name: String,
    shortname: String,
    extra: String,
}

Service descriptor

Unlike the one in main.rs, this descriptor only needs to contain things that are useful for display in the interface. However, they should probably be unified (TODO). The "web descriptor" could be just a subfield of the main.rs service descriptor, and then those could get passed in here (somehow).

Fields

name
shortname
extra

Methods

impl Service

fn new(s: &str, t: &str, e: &str) -> Service

Create a new service descriptor with the given name

Trait Implementations

impl ToJson for Service

fn to_json(&self) -> Json