[−][src]Trait appstream_glib::AppExt
Required methods
fn add_addon<P: IsA<App>>(&self, addon: &P)
fn add_agreement<P: IsA<Agreement>>(&self, agreement: &P)
fn add_arch(&self, arch: &str)
fn add_bundle<P: IsA<Bundle>>(&self, bundle: &P)
fn add_category(&self, category: &str)
fn add_compulsory_for_desktop(&self, compulsory_for_desktop: &str)
fn add_extends(&self, extends: &str)
fn add_format<P: IsA<Format>>(&self, format: &P)
fn add_icon<P: IsA<Icon>>(&self, icon: &P)
fn add_keyword(&self, locale: Option<&str>, keyword: &str)
fn add_kudo(&self, kudo: &str)
fn add_kudo_kind(&self, kudo_kind: KudoKind)
fn add_language(&self, percentage: i32, locale: Option<&str>)
fn add_launchable<P: IsA<Launchable>>(&self, launchable: &P)
fn add_metadata(&self, key: &str, value: Option<&str>)
fn add_mimetype(&self, mimetype: &str)
fn add_permission(&self, permission: &str)
fn add_pkgname(&self, pkgname: &str)
fn add_provide<P: IsA<Provide>>(&self, provide: &P)
fn add_quirk(&self, quirk: AppQuirk)
fn add_require<P: IsA<Require>>(&self, require: &P)
fn add_review<P: IsA<Review>>(&self, review: &P)
fn add_screenshot<P: IsA<Screenshot>>(&self, screenshot: &P)
fn add_suggest<P: IsA<Suggest>>(&self, suggest: &P)
fn add_translation<P: IsA<Translation>>(&self, translation: &P)
fn add_url(&self, url_kind: UrlKind, url: &str)
fn convert_icons(&self, kind: IconKind) -> Result<(), Error>
fn equal<P: IsA<App>>(&self, app2: &P) -> bool
fn get_agreement_by_kind(&self, kind: AgreementKind) -> Option<Agreement>
fn get_agreement_default(&self) -> Option<Agreement>
fn get_branch(&self) -> Option<GString>
fn get_bundle_default(&self) -> Option<Bundle>
fn get_comment(&self, locale: Option<&str>) -> Option<GString>
fn get_description(&self, locale: Option<&str>) -> Option<GString>
fn get_developer_name(&self, locale: Option<&str>) -> Option<GString>
fn get_format_by_filename(&self, filename: &str) -> Option<Format>
fn get_format_by_kind(&self, kind: FormatKind) -> Option<Format>
fn get_format_default(&self) -> Option<Format>
fn get_icon_default(&self) -> Option<Icon>
fn get_icon_for_size(&self, width: u32, height: u32) -> Option<Icon>
fn get_icon_path(&self) -> Option<GString>
fn get_id(&self) -> Option<GString>
fn get_id_filename(&self) -> Option<GString>
fn get_id_kind(&self) -> IdKind
fn get_id_no_prefix(&self) -> Option<GString>
fn get_kind(&self) -> AppKind
fn get_language(&self, locale: Option<&str>) -> i32
fn get_languages(&self) -> Vec<GString>
fn get_launchable_by_kind(&self, kind: LaunchableKind) -> Option<Launchable>
fn get_launchable_default(&self) -> Option<Launchable>
fn get_merge_kind(&self) -> AppMergeKind
fn get_metadata_item(&self, key: &str) -> Option<GString>
fn get_metadata_license(&self) -> Option<GString>
fn get_name(&self, locale: Option<&str>) -> Option<GString>
fn get_origin(&self) -> Option<GString>
fn get_pkgname_default(&self) -> Option<GString>
fn get_priority(&self) -> i32
fn get_project_group(&self) -> Option<GString>
fn get_project_license(&self) -> Option<GString>
fn get_require_by_value(
&self,
kind: RequireKind,
value: &str
) -> Option<Require>
&self,
kind: RequireKind,
value: &str
) -> Option<Require>
fn get_scope(&self) -> AppScope
fn get_screenshot_default(&self) -> Option<Screenshot>
fn get_search_match(&self) -> u16
fn get_source_file(&self) -> Option<GString>
fn get_source_kind(&self) -> FormatKind
fn get_source_pkgname(&self) -> Option<GString>
fn get_state(&self) -> AppState
fn get_trust_flags(&self) -> u32
fn get_unique_id(&self) -> Option<GString>
fn get_update_contact(&self) -> Option<GString>
fn get_url_item(&self, url_kind: UrlKind) -> Option<GString>
fn has_category(&self, category: &str) -> bool
fn has_compulsory_for_desktop(&self, desktop: &str) -> bool
fn has_kudo(&self, kudo: &str) -> bool
fn has_kudo_kind(&self, kudo: KudoKind) -> bool
fn has_permission(&self, permission: &str) -> bool
fn has_quirk(&self, quirk: AppQuirk) -> bool
fn parse_data(&self, data: &Bytes, flags: u32) -> Result<(), Error>
fn parse_file(&self, filename: &str, flags: u32) -> Result<(), Error>
fn remove_category(&self, category: &str)
fn remove_format<P: IsA<Format>>(&self, format: &P)
fn remove_kudo(&self, kudo: &str)
fn remove_metadata(&self, key: &str)
fn remove_veto(&self, description: &str)
fn search_matches(&self, search: &str) -> u32
fn set_branch(&self, branch: &str)
fn set_comment(&self, locale: Option<&str>, comment: &str)
fn set_description(&self, locale: Option<&str>, description: &str)
fn set_developer_name(&self, locale: Option<&str>, developer_name: &str)
fn set_icon_path(&self, icon_path: &str)
fn set_id(&self, id: &str)
fn set_id_kind(&self, id_kind: IdKind)
fn set_kind(&self, kind: AppKind)
fn set_merge_kind(&self, merge_kind: AppMergeKind)
fn set_metadata_license(&self, metadata_license: &str)
fn set_name(&self, locale: Option<&str>, name: &str)
fn set_origin(&self, origin: &str)
fn set_priority(&self, priority: i32)
fn set_project_group(&self, project_group: &str)
fn set_project_license(&self, project_license: &str)
fn set_scope(&self, scope: AppScope)
fn set_search_match(&self, search_match: u16)
fn set_source_file(&self, source_file: &str)
fn set_source_kind(&self, source_kind: FormatKind)
fn set_source_pkgname(&self, source_pkgname: &str)
fn set_state(&self, state: AppState)
fn set_trust_flags(&self, trust_flags: u32)
fn set_update_contact(&self, update_contact: &str)
fn subsume<P: IsA<App>>(&self, donor: &P)
fn subsume_full<P: IsA<App>>(&self, donor: &P, flags: u64)
fn to_file<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
file: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
&self,
file: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
fn to_xml(&self) -> Result<String, Error>
Implementors
impl<O: IsA<App>> AppExt for O
[src]
fn add_addon<P: IsA<App>>(&self, addon: &P)
[src]
fn add_agreement<P: IsA<Agreement>>(&self, agreement: &P)
[src]
fn add_arch(&self, arch: &str)
[src]
fn add_bundle<P: IsA<Bundle>>(&self, bundle: &P)
[src]
fn add_category(&self, category: &str)
[src]
fn add_compulsory_for_desktop(&self, compulsory_for_desktop: &str)
[src]
fn add_extends(&self, extends: &str)
[src]
fn add_format<P: IsA<Format>>(&self, format: &P)
[src]
fn add_icon<P: IsA<Icon>>(&self, icon: &P)
[src]
fn add_keyword(&self, locale: Option<&str>, keyword: &str)
[src]
fn add_kudo(&self, kudo: &str)
[src]
fn add_kudo_kind(&self, kudo_kind: KudoKind)
[src]
fn add_language(&self, percentage: i32, locale: Option<&str>)
[src]
fn add_launchable<P: IsA<Launchable>>(&self, launchable: &P)
[src]
fn add_metadata(&self, key: &str, value: Option<&str>)
[src]
fn add_mimetype(&self, mimetype: &str)
[src]
fn add_permission(&self, permission: &str)
[src]
fn add_pkgname(&self, pkgname: &str)
[src]
fn add_provide<P: IsA<Provide>>(&self, provide: &P)
[src]
fn add_quirk(&self, quirk: AppQuirk)
[src]
fn add_require<P: IsA<Require>>(&self, require: &P)
[src]
fn add_review<P: IsA<Review>>(&self, review: &P)
[src]
fn add_screenshot<P: IsA<Screenshot>>(&self, screenshot: &P)
[src]
fn add_suggest<P: IsA<Suggest>>(&self, suggest: &P)
[src]
fn add_translation<P: IsA<Translation>>(&self, translation: &P)
[src]
fn add_url(&self, url_kind: UrlKind, url: &str)
[src]
fn convert_icons(&self, kind: IconKind) -> Result<(), Error>
[src]
fn equal<P: IsA<App>>(&self, app2: &P) -> bool
[src]
fn get_agreement_by_kind(&self, kind: AgreementKind) -> Option<Agreement>
[src]
fn get_agreement_default(&self) -> Option<Agreement>
[src]
fn get_branch(&self) -> Option<GString>
[src]
fn get_bundle_default(&self) -> Option<Bundle>
[src]
fn get_comment(&self, locale: Option<&str>) -> Option<GString>
[src]
fn get_description(&self, locale: Option<&str>) -> Option<GString>
[src]
fn get_developer_name(&self, locale: Option<&str>) -> Option<GString>
[src]
fn get_format_by_filename(&self, filename: &str) -> Option<Format>
[src]
fn get_format_by_kind(&self, kind: FormatKind) -> Option<Format>
[src]
fn get_format_default(&self) -> Option<Format>
[src]
fn get_icon_default(&self) -> Option<Icon>
[src]
fn get_icon_for_size(&self, width: u32, height: u32) -> Option<Icon>
[src]
fn get_icon_path(&self) -> Option<GString>
[src]
fn get_id(&self) -> Option<GString>
[src]
fn get_id_filename(&self) -> Option<GString>
[src]
fn get_id_kind(&self) -> IdKind
[src]
fn get_id_no_prefix(&self) -> Option<GString>
[src]
fn get_kind(&self) -> AppKind
[src]
fn get_language(&self, locale: Option<&str>) -> i32
[src]
fn get_languages(&self) -> Vec<GString>
[src]
fn get_launchable_by_kind(&self, kind: LaunchableKind) -> Option<Launchable>
[src]
fn get_launchable_default(&self) -> Option<Launchable>
[src]
fn get_merge_kind(&self) -> AppMergeKind
[src]
fn get_metadata_item(&self, key: &str) -> Option<GString>
[src]
fn get_metadata_license(&self) -> Option<GString>
[src]
fn get_name(&self, locale: Option<&str>) -> Option<GString>
[src]
fn get_origin(&self) -> Option<GString>
[src]
fn get_pkgname_default(&self) -> Option<GString>
[src]
fn get_priority(&self) -> i32
[src]
fn get_project_group(&self) -> Option<GString>
[src]
fn get_project_license(&self) -> Option<GString>
[src]
fn get_require_by_value(
&self,
kind: RequireKind,
value: &str
) -> Option<Require>
[src]
&self,
kind: RequireKind,
value: &str
) -> Option<Require>
fn get_scope(&self) -> AppScope
[src]
fn get_screenshot_default(&self) -> Option<Screenshot>
[src]
fn get_search_match(&self) -> u16
[src]
fn get_source_file(&self) -> Option<GString>
[src]
fn get_source_kind(&self) -> FormatKind
[src]
fn get_source_pkgname(&self) -> Option<GString>
[src]
fn get_state(&self) -> AppState
[src]
fn get_trust_flags(&self) -> u32
[src]
fn get_unique_id(&self) -> Option<GString>
[src]
fn get_update_contact(&self) -> Option<GString>
[src]
fn get_url_item(&self, url_kind: UrlKind) -> Option<GString>
[src]
fn has_category(&self, category: &str) -> bool
[src]
fn has_compulsory_for_desktop(&self, desktop: &str) -> bool
[src]
fn has_kudo(&self, kudo: &str) -> bool
[src]
fn has_kudo_kind(&self, kudo: KudoKind) -> bool
[src]
fn has_permission(&self, permission: &str) -> bool
[src]
fn has_quirk(&self, quirk: AppQuirk) -> bool
[src]
fn parse_data(&self, data: &Bytes, flags: u32) -> Result<(), Error>
[src]
fn parse_file(&self, filename: &str, flags: u32) -> Result<(), Error>
[src]
fn remove_category(&self, category: &str)
[src]
fn remove_format<P: IsA<Format>>(&self, format: &P)
[src]
fn remove_kudo(&self, kudo: &str)
[src]
fn remove_metadata(&self, key: &str)
[src]
fn remove_veto(&self, description: &str)
[src]
fn search_matches(&self, search: &str) -> u32
[src]
fn set_branch(&self, branch: &str)
[src]
fn set_comment(&self, locale: Option<&str>, comment: &str)
[src]
fn set_description(&self, locale: Option<&str>, description: &str)
[src]
fn set_developer_name(&self, locale: Option<&str>, developer_name: &str)
[src]
fn set_icon_path(&self, icon_path: &str)
[src]
fn set_id(&self, id: &str)
[src]
fn set_id_kind(&self, id_kind: IdKind)
[src]
fn set_kind(&self, kind: AppKind)
[src]
fn set_merge_kind(&self, merge_kind: AppMergeKind)
[src]
fn set_metadata_license(&self, metadata_license: &str)
[src]
fn set_name(&self, locale: Option<&str>, name: &str)
[src]
fn set_origin(&self, origin: &str)
[src]
fn set_priority(&self, priority: i32)
[src]
fn set_project_group(&self, project_group: &str)
[src]
fn set_project_license(&self, project_license: &str)
[src]
fn set_scope(&self, scope: AppScope)
[src]
fn set_search_match(&self, search_match: u16)
[src]
fn set_source_file(&self, source_file: &str)
[src]
fn set_source_kind(&self, source_kind: FormatKind)
[src]
fn set_source_pkgname(&self, source_pkgname: &str)
[src]
fn set_state(&self, state: AppState)
[src]
fn set_trust_flags(&self, trust_flags: u32)
[src]
fn set_update_contact(&self, update_contact: &str)
[src]
fn subsume<P: IsA<App>>(&self, donor: &P)
[src]
fn subsume_full<P: IsA<App>>(&self, donor: &P, flags: u64)
[src]
fn to_file<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
file: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
file: &P,
cancellable: Option<&Q>
) -> Result<(), Error>