Skip to main content

PackageExt

Trait PackageExt 

Source
pub trait PackageExt {
    // Required methods
    fn pkg_name(&self) -> &str;
    fn pkg_id(&self) -> &str;
    fn version(&self) -> &str;
    fn repo_name(&self) -> &str;
}
Expand description

Trait for types that represent package metadata.

This trait provides access to basic package information needed for integration operations like desktop file creation and symlink management.

Required Methods§

Source

fn pkg_name(&self) -> &str

Returns the package name (human-readable name).

Source

fn pkg_id(&self) -> &str

Returns the unique package identifier.

Source

fn version(&self) -> &str

Returns the package version string.

Source

fn repo_name(&self) -> &str

Returns the repository name this package belongs to.

Implementors§