libappstream::prelude

Trait IssueExt

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

Trait containing all Issue methods.

§Implementors

Issue

Provided Methods§

source

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

Gets the issue ID (usually a bug number or CVE ID)

§Returns

the ID.

source

fn kind(&self) -> IssueKind

Gets the issue type.

§Returns

the IssueKind

source

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

Gets the URL associacted with this issue, usually referencing a bug report or issue description.

§Returns

the URL.

source

fn set_id(&self, id: &str)

Sets the issue ID.

§id

the new ID.

source

fn set_kind(&self, kind: IssueKind)

Sets the issue type.

§kind

the IssueKind, e.g. AS_ISSUE_KIND_SHA256.

source

fn set_url(&self, url: &str)

Sets an URL describing this issue.

§url

the new URL.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Issue>> IssueExt for O