rocket::mtls::x509::oid_registry

Function load_file

Source
pub fn load_file<P>(
    path: P,
) -> Result<BTreeMap<String, Vec<LoadedEntry>>, Error>
where P: AsRef<Path>,
Available on crate feature mtls only.
Expand description

Load a file to an OID description map

format of the file: tab-separated values

feature   name   oid   short_name   description (until end of line)

name is used to declare a global constant when creating output file (see generate_file). If name is “” then no constant will be written