libappstream::prelude

Trait SuggestedExt

source
pub trait SuggestedExt:
    IsA<Suggested>
    + Sealed
    + 'static {
    // Provided methods
    fn add_id(&self, cid: &str) { ... }
    fn ids(&self) -> Vec<GString> { ... }
    fn kind(&self) -> SuggestedKind { ... }
    fn is_valid(&self) -> bool { ... }
    fn set_kind(&self, kind: SuggestedKind) { ... }
}
Expand description

Trait containing all Suggested methods.

§Implementors

Suggested

Provided Methods§

source

fn add_id(&self, cid: &str)

Add a component id to this suggested object.

§cid

The component id to add

source

fn ids(&self) -> Vec<GString>

Get a list of components id that generated the suggestion

§Returns

an array of components id

source

fn kind(&self) -> SuggestedKind

Gets the suggested kind.

§Returns

the SuggestedKind

source

fn is_valid(&self) -> bool

Check if the essential properties of this suggestion are populated with useful data.

§Returns

true if we have useful data.

source

fn set_kind(&self, kind: SuggestedKind)

Sets the suggested kind.

§kind

the SuggestedKind, e.g. SuggestedKind::Heuristic.

Object Safety§

This trait is not object safe.

Implementors§