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

source

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").

source

pub fn set_arch<S: Into<String>>(&mut self, arch: S)

Sets the architecture string in the “template” property.

source

pub fn clear_arch(&mut self)

Clears the architecture string in the “template” property.

source

pub fn author(&self) -> Option<&str>

Gets the “author” property, if one is set. This indicates the name of the person or company that created the package.

source

pub fn set_author<S: Into<String>>(&mut self, author: S)

Sets the “author” property.

source

pub fn clear_author(&mut self)

Clears the “author” property.

source

pub fn codepage(&self) -> CodePage

Gets the code page used for serializing this summary info.

source

pub fn set_codepage(&mut self, codepage: CodePage)

Sets the code page used for serializing this summary info.

source

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.

source

pub fn set_comments<S: Into<String>>(&mut self, comments: S)

Sets the “comments” property.

source

pub fn clear_comments(&mut self)

Clears the “comments” property.

source

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.

source

pub fn set_creating_application<S: Into<String>>(&mut self, app_name: S)

Sets the “creating application” property.

source

pub fn clear_creating_application(&mut self)

Clears the “creating application” property.

source

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.

source

pub fn set_creation_time(&mut self, timestamp: SystemTime)

Sets the “creation time” property.

source

pub fn set_creation_time_to_now(&mut self)

Sets the “creation time” property to the current time.

source

pub fn clear_creation_time(&mut self)

Clears the “creation time” property.

source

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.

source

pub fn set_languages(&mut self, languages: &[Language])

Sets the list of languages in the “template” property.

source

pub fn clear_languages(&mut self)

Clears the list of languages in the “template” property.

source

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.

source

pub fn set_subject<S: Into<String>>(&mut self, subject: S)

Sets the “subject” property.

source

pub fn clear_subject(&mut self)

Clears the “subject” property.

source

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”).

source

pub fn set_title<S: Into<String>>(&mut self, title: S)

Sets the “title” property.

source

pub fn clear_title(&mut self)

Clears the “title” property.

source

pub fn uuid(&self) -> Option<Uuid>

Gets the “UUID” property, if one is set.

source

pub fn set_uuid(&mut self, uuid: Uuid)

Sets the “UUID” property.

source

pub fn clear_uuid(&mut self)

Clears the “UUID” property.

source

pub fn word_count(&self) -> Option<i32>

Gets the “Word Count” property, if one is set.

source

pub fn set_word_count(&mut self, word_count: i32)

Sets the “Word Count” property.

source

pub fn clear_word_count(&mut self)

Clears the “Word Count” property.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.