Skip to main content

StringFileInfo

Struct StringFileInfo 

Source
pub struct StringFileInfo<'a> {
    pub comments: Option<&'a [u8]>,
    pub company_name: Option<&'a [u8]>,
    pub file_description: Option<&'a [u8]>,
    pub file_version: Option<&'a [u8]>,
    pub internal_name: Option<&'a [u8]>,
    pub legal_copyright: Option<&'a [u8]>,
    pub legal_trademarks: Option<&'a [u8]>,
    pub original_filename: Option<&'a [u8]>,
    pub private_build: Option<&'a [u8]>,
    pub product_name: Option<&'a [u8]>,
    pub product_version: Option<&'a [u8]>,
    pub special_build: Option<&'a [u8]>,
}
Expand description

Represents a collection of string-based file information in a version resource.

This struct holds various metadata attributes about a file, such as the company name, file description, version information, and copyright details. Each field is optional and can be absent if the information is not available.

Fields§

§comments: Option<&'a [u8]>

Additional information for diagnostic purposes. Can be of arbitrary length.

§company_name: Option<&'a [u8]>

The name of the company that produced the file, e.g., “Microsoft Corporation”.

§file_description: Option<&'a [u8]>

A description of the file suitable for presentation to users, e.g., “Keyboard driver for AT-style keyboards”.

§file_version: Option<&'a [u8]>

The version of the file, e.g., “3.00A” or “5.00.RC2”.

§internal_name: Option<&'a [u8]>

The internal name of the file, which may include module names for DLLs or device names.

§legal_copyright: Option<&'a [u8]>

Copyright notices and trademarks related to the file, formatted as “Copyright Microsoft Corp. 1990 1994”.

§legal_trademarks: Option<&'a [u8]>

Trademarks and registered trademarks associated with the file, e.g., “Windows is a trademark of Microsoft Corporation”.

§original_filename: Option<&'a [u8]>

The original name of the file (without a path), used to determine if it has been renamed.

§private_build: Option<&'a [u8]>

Information about who, where, and why the private version of the file was built, applicable only if the VS_FF_PRIVATEBUILD flag is set.

§product_name: Option<&'a [u8]>

The name of the product with which this file is distributed, e.g., “Microsoft Windows”.

§product_version: Option<&'a [u8]>

The version of the product associated with this file, e.g., “3.00A” or “5.00.RC2”.

§special_build: Option<&'a [u8]>

A description of how this version differs from the normal version, applicable only if the VS_FF_SPECIALBUILD flag is set.

Implementations§

Source§

impl<'a> StringFileInfo<'a>

Source

pub fn comments(&self) -> Option<String>

Stringize the StringFileInfo::comments slice into a String.

Source

pub fn company_name(&self) -> Option<String>

Stringize the StringFileInfo::company_name slice into a String.

Source

pub fn file_description(&self) -> Option<String>

Stringize the StringFileInfo::file_description slice into a String.

Source

pub fn file_version(&self) -> Option<String>

Stringize the StringFileInfo::file_version slice into a String.

Source

pub fn internal_name(&self) -> Option<String>

Stringize the StringFileInfo::internal_name slice into a String.

Stringize the StringFileInfo::legal_copyright slice into a String.

Source

pub fn legal_trademarks(&self) -> Option<String>

Stringize the StringFileInfo::legal_trademarks slice into a String.

Source

pub fn original_filename(&self) -> Option<String>

Stringize the StringFileInfo::original_filename slice into a String.

Source

pub fn private_build(&self) -> Option<String>

Stringize the StringFileInfo::private_build slice into a String.

Source

pub fn product_name(&self) -> Option<String>

Stringize the StringFileInfo::product_name slice into a String.

Source

pub fn product_version(&self) -> Option<String>

Stringize the StringFileInfo::product_version slice into a String.

Source

pub fn special_build(&self) -> Option<String>

Stringize the StringFileInfo::special_build slice into a String.

Trait Implementations§

Source§

impl<'a> Clone for StringFileInfo<'a>

Source§

fn clone(&self) -> StringFileInfo<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for StringFileInfo<'a>

Source§

impl Debug for StringFileInfo<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for StringFileInfo<'a>

§

impl<'a> RefUnwindSafe for StringFileInfo<'a>

§

impl<'a> Send for StringFileInfo<'a>

§

impl<'a> Sync for StringFileInfo<'a>

§

impl<'a> Unpin for StringFileInfo<'a>

§

impl<'a> UnsafeUnpin for StringFileInfo<'a>

§

impl<'a> UnwindSafe for StringFileInfo<'a>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.