libappstream::prelude

Trait BundleExt

source
pub trait BundleExt:
    IsA<Bundle>
    + Sealed
    + 'static {
    // Provided methods
    fn id(&self) -> Option<GString> { ... }
    fn kind(&self) -> BundleKind { ... }
    fn set_id(&self, id: &str) { ... }
    fn set_kind(&self, kind: BundleKind) { ... }
}
Expand description

Trait containing all Bundle methods.

§Implementors

Bundle

Provided Methods§

source

fn id(&self) -> Option<GString>

Gets the ID for this bundle.

§Returns

ID, e.g. “foobar-1.0.2”

source

fn kind(&self) -> BundleKind

Gets the bundle kind.

§Returns

the BundleKind

source

fn set_id(&self, id: &str)

Sets the ID for this bundle.

§id

the URL.

source

fn set_kind(&self, kind: BundleKind)

Sets the bundle kind.

§kind

the BundleKind, e.g. BundleKind::Limba.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Bundle>> BundleExt for O