libappstream::functions

Function utils_build_data_id

source
pub fn utils_build_data_id(
    scope: ComponentScope,
    bundle_kind: BundleKind,
    origin: &str,
    cid: &str,
    branch: &str,
) -> Option<GString>
Expand description

Builds an identifier string unique to the individual dataset using the supplied information.

§scope

Scope of the metadata as ComponentScope e.g. ComponentScope::System

§bundle_kind

Bundling system providing this data, e.g. ‘package’ or ‘flatpak’

§origin

Origin string, e.g. ‘os’ or ‘gnome-apps-nightly’

§cid

AppStream component ID, e.g. ‘org.freedesktop.appstream.cli’

§branch

Branch, e.g. ‘3-20’ or ‘master’