Struct msi::SummaryInfo
source · pub struct SummaryInfo { /* private fields */ }
Expand description
Summary information (e.g. title, author) about an MSI package.
Implementations§
source§impl SummaryInfo
impl SummaryInfo
sourcepub fn arch(&self) -> Option<&str>
pub fn arch(&self) -> Option<&str>
Gets the architecture string from the “template” property, if one is
set. This indicates the hardware architecture that this package is
intended for (e.g. "x64"
).
sourcepub fn set_arch<S: Into<String>>(&mut self, arch: S)
pub fn set_arch<S: Into<String>>(&mut self, arch: S)
Sets the architecture string in the “template” property.
sourcepub fn clear_arch(&mut self)
pub fn clear_arch(&mut self)
Clears the architecture string in the “template” property.
Gets the “author” property, if one is set. This indicates the name of the person or company that created the package.
Sets the “author” property.
Clears the “author” property.
sourcepub fn set_codepage(&mut self, codepage: CodePage)
pub fn set_codepage(&mut self, codepage: CodePage)
Sets the code page used for serializing this summary info.
sourcepub fn comments(&self) -> Option<&str>
pub fn comments(&self) -> Option<&str>
Gets the “comments” property, if one is set. This typically gives a brief description of the application/software that will be installed by the package.
sourcepub fn set_comments<S: Into<String>>(&mut self, comments: S)
pub fn set_comments<S: Into<String>>(&mut self, comments: S)
Sets the “comments” property.
sourcepub fn clear_comments(&mut self)
pub fn clear_comments(&mut self)
Clears the “comments” property.
sourcepub fn creating_application(&self) -> Option<&str>
pub fn creating_application(&self) -> Option<&str>
Gets the “creating application” property, if one is set. This indicates the name of the software application/tool that was used to create the package.
sourcepub fn set_creating_application<S: Into<String>>(&mut self, app_name: S)
pub fn set_creating_application<S: Into<String>>(&mut self, app_name: S)
Sets the “creating application” property.
sourcepub fn clear_creating_application(&mut self)
pub fn clear_creating_application(&mut self)
Clears the “creating application” property.
sourcepub fn creation_time(&self) -> Option<SystemTime>
pub fn creation_time(&self) -> Option<SystemTime>
Gets the “creation time” property, if one is set. This indicates the date/time when the package was created.
sourcepub fn set_creation_time(&mut self, timestamp: SystemTime)
pub fn set_creation_time(&mut self, timestamp: SystemTime)
Sets the “creation time” property.
sourcepub fn set_creation_time_to_now(&mut self)
pub fn set_creation_time_to_now(&mut self)
Sets the “creation time” property to the current time.
sourcepub fn clear_creation_time(&mut self)
pub fn clear_creation_time(&mut self)
Clears the “creation time” property.
sourcepub fn languages(&self) -> Vec<Language>
pub fn languages(&self) -> Vec<Language>
Gets the list of languages from the “template” property, if one is set. This indicates the languages that this package supports.
sourcepub fn set_languages(&mut self, languages: &[Language])
pub fn set_languages(&mut self, languages: &[Language])
Sets the list of languages in the “template” property.
sourcepub fn clear_languages(&mut self)
pub fn clear_languages(&mut self)
Clears the list of languages in the “template” property.
sourcepub fn subject(&self) -> Option<&str>
pub fn subject(&self) -> Option<&str>
Gets the “subject” property, if one is set. This typically indicates the name of the application/software that will be installed by the package.
sourcepub fn set_subject<S: Into<String>>(&mut self, subject: S)
pub fn set_subject<S: Into<String>>(&mut self, subject: S)
Sets the “subject” property.
sourcepub fn clear_subject(&mut self)
pub fn clear_subject(&mut self)
Clears the “subject” property.
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Gets the “title” property, if one is set. This indicates the type of the installer package (e.g. “Installation Database” or “Patch”).
sourcepub fn clear_title(&mut self)
pub fn clear_title(&mut self)
Clears the “title” property.
sourcepub fn clear_uuid(&mut self)
pub fn clear_uuid(&mut self)
Clears the “UUID” property.
sourcepub fn word_count(&self) -> Option<i32>
pub fn word_count(&self) -> Option<i32>
Gets the “Word Count” property, if one is set.
sourcepub fn set_word_count(&mut self, word_count: i32)
pub fn set_word_count(&mut self, word_count: i32)
Sets the “Word Count” property.
sourcepub fn clear_word_count(&mut self)
pub fn clear_word_count(&mut self)
Clears the “Word Count” property.