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§
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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".