Skip to main content

parse_network_allowlist_catalog_text

Function parse_network_allowlist_catalog_text 

Source
pub fn parse_network_allowlist_catalog_text(
    text: &str,
) -> Result<NetworkAllowlistCatalog, NetworkAllowlistCatalogError>
Expand description

Parse catalog text: JSON v2 when first non-comment content is {, else v1 id-list (one id per line).