libappstream::functions

Function license_is_metadata_license_id

source
pub fn license_is_metadata_license_id(license_id: &str) -> bool
Expand description

Tests license ID against the vetted list of licenses that can be used for metainfo metadata. This function will not work for license expressions, if you need to test an SPDX license expression for compliance, please use as_license_is_metadata_license insread.

§license_id

a single SPDX license ID, e.g. “FSFAP”

§Returns

true if the string is a valid metadata license ID.