Skip to main content

MetadataExt

Trait MetadataExt 

Source
pub trait MetadataExt: IsA<Metadata> + 'static {
Show 36 methods // Provided methods fn add_component(&self, cpt: &impl IsA<Component>) { ... } fn clear_components(&self) { ... } fn clear_releases(&self) { ... } fn component_to_metainfo( &self, format: FormatKind, ) -> Result<GString, Error> { ... } fn components_to_catalog( &self, format: FormatKind, ) -> Result<GString, Error> { ... } fn architecture(&self) -> Option<GString> { ... } fn component(&self) -> Option<Component> { ... } fn components(&self) -> Option<ComponentBox> { ... } fn format_style(&self) -> FormatStyle { ... } fn format_version(&self) -> FormatVersion { ... } fn locale(&self) -> Option<GString> { ... } fn media_baseurl(&self) -> Option<GString> { ... } fn origin(&self) -> Option<GString> { ... } fn parse_flags(&self) -> ParseFlags { ... } fn release_list(&self) -> Option<ReleaseList> { ... } fn release_lists(&self) -> Vec<ReleaseList> { ... } fn is_update_existing(&self) -> bool { ... } fn is_write_header(&self) -> bool { ... } fn parse_bytes( &self, bytes: &Bytes, format: FormatKind, ) -> Result<(), Error> { ... } fn parse_data(&self, data: &str, format: FormatKind) -> Result<(), Error> { ... } fn parse_desktop_data(&self, cid: &str, data: &str) -> Result<(), Error> { ... } fn parse_file( &self, file: &impl IsA<File>, format: FormatKind, ) -> Result<(), Error> { ... } fn parse_releases_bytes(&self, bytes: &Bytes) -> Result<(), Error> { ... } fn parse_releases_file(&self, file: &impl IsA<File>) -> Result<(), Error> { ... } fn releases_to_data( &self, releases: &impl IsA<ReleaseList>, ) -> Result<GString, Error> { ... } fn save_catalog(&self, fname: &str, format: FormatKind) -> Result<(), Error> { ... } fn save_metainfo( &self, fname: &str, format: FormatKind, ) -> Result<(), Error> { ... } fn set_architecture(&self, arch: &str) { ... } fn set_format_style(&self, mode: FormatStyle) { ... } fn set_format_version(&self, version: FormatVersion) { ... } fn set_locale(&self, locale: &str) { ... } fn set_media_baseurl(&self, url: &str) { ... } fn set_origin(&self, origin: &str) { ... } fn set_parse_flags(&self, flags: ParseFlags) { ... } fn set_update_existing(&self, update: bool) { ... } fn set_write_header(&self, wheader: bool) { ... }
}

Provided Methods§

Source

fn add_component(&self, cpt: &impl IsA<Component>)

Source

fn clear_components(&self)

Source

fn clear_releases(&self)

Source

fn component_to_metainfo(&self, format: FormatKind) -> Result<GString, Error>

Source

fn components_to_catalog(&self, format: FormatKind) -> Result<GString, Error>

Source

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

Source

fn component(&self) -> Option<Component>

Source

fn components(&self) -> Option<ComponentBox>

Source

fn format_style(&self) -> FormatStyle

Source

fn format_version(&self) -> FormatVersion

Source

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

Source

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

Source

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

Source

fn parse_flags(&self) -> ParseFlags

Source

fn release_list(&self) -> Option<ReleaseList>

Source

fn release_lists(&self) -> Vec<ReleaseList>

Source

fn is_update_existing(&self) -> bool

Source

fn is_write_header(&self) -> bool

Source

fn parse_bytes(&self, bytes: &Bytes, format: FormatKind) -> Result<(), Error>

Source

fn parse_data(&self, data: &str, format: FormatKind) -> Result<(), Error>

Source

fn parse_desktop_data(&self, cid: &str, data: &str) -> Result<(), Error>

Source

fn parse_file( &self, file: &impl IsA<File>, format: FormatKind, ) -> Result<(), Error>

Source

fn parse_releases_bytes(&self, bytes: &Bytes) -> Result<(), Error>

Source

fn parse_releases_file(&self, file: &impl IsA<File>) -> Result<(), Error>

Source

fn releases_to_data( &self, releases: &impl IsA<ReleaseList>, ) -> Result<GString, Error>

Source

fn save_catalog(&self, fname: &str, format: FormatKind) -> Result<(), Error>

Source

fn save_metainfo(&self, fname: &str, format: FormatKind) -> Result<(), Error>

Source

fn set_architecture(&self, arch: &str)

Source

fn set_format_style(&self, mode: FormatStyle)

Source

fn set_format_version(&self, version: FormatVersion)

Source

fn set_locale(&self, locale: &str)

Source

fn set_media_baseurl(&self, url: &str)

Source

fn set_origin(&self, origin: &str)

Source

fn set_parse_flags(&self, flags: ParseFlags)

Source

fn set_update_existing(&self, update: bool)

Source

fn set_write_header(&self, wheader: bool)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§