Trait libflatpak::prelude::RefExt

source ·
pub trait RefExt:
    IsA<Ref>
    + Sealed
    + 'static {
    // Provided methods
    fn format_ref(&self) -> Option<GString> { ... }
    fn format_ref_cached(&self) -> Option<GString> { ... }
    fn arch(&self) -> Option<GString> { ... }
    fn branch(&self) -> Option<GString> { ... }
    fn collection_id(&self) -> Option<GString> { ... }
    fn commit(&self) -> Option<GString> { ... }
    fn kind(&self) -> RefKind { ... }
    fn name(&self) -> Option<GString> { ... }
}
Expand description

Trait containing all Ref methods.

§Implementors

BundleRef, InstalledRef, Ref, RelatedRef, RemoteRef

Provided Methods§

source

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

source

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

Like flatpak_ref_format_ref() but this returns the same string each time it’s called rather than allocating a new one.

§Returns

string representation

source

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

Gets the arch or the ref.

§Returns

the arch

source

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

Gets the branch of the ref.

§Returns

the branch

source

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

Gets the collection ID of the ref.

§Returns

the collection ID

source

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

Gets the commit of the ref.

§Returns

the commit

source

fn kind(&self) -> RefKind

Gets the kind of artifact that this ref refers to.

§Returns

the kind of artifact

source

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

Gets the name of the ref.

§Returns

the name

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Ref>> RefExt for O