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>
impl<'a> StringFileInfo<'a>
Sourcepub fn comments(&self) -> Option<String>
pub fn comments(&self) -> Option<String>
Stringize the StringFileInfo::comments slice into a String.
Sourcepub fn company_name(&self) -> Option<String>
pub fn company_name(&self) -> Option<String>
Stringize the StringFileInfo::company_name slice into a String.
Sourcepub fn file_description(&self) -> Option<String>
pub fn file_description(&self) -> Option<String>
Stringize the StringFileInfo::file_description slice into a String.
Sourcepub fn file_version(&self) -> Option<String>
pub fn file_version(&self) -> Option<String>
Stringize the StringFileInfo::file_version slice into a String.
Sourcepub fn internal_name(&self) -> Option<String>
pub fn internal_name(&self) -> Option<String>
Stringize the StringFileInfo::internal_name slice into a String.
Sourcepub fn legal_copyright(&self) -> Option<String>
pub fn legal_copyright(&self) -> Option<String>
Stringize the StringFileInfo::legal_copyright slice into a String.
Sourcepub fn legal_trademarks(&self) -> Option<String>
pub fn legal_trademarks(&self) -> Option<String>
Stringize the StringFileInfo::legal_trademarks slice into a String.
Sourcepub fn original_filename(&self) -> Option<String>
pub fn original_filename(&self) -> Option<String>
Stringize the StringFileInfo::original_filename slice into a String.
Sourcepub fn private_build(&self) -> Option<String>
pub fn private_build(&self) -> Option<String>
Stringize the StringFileInfo::private_build slice into a String.
Sourcepub fn product_name(&self) -> Option<String>
pub fn product_name(&self) -> Option<String>
Stringize the StringFileInfo::product_name slice into a String.
Sourcepub fn product_version(&self) -> Option<String>
pub fn product_version(&self) -> Option<String>
Stringize the StringFileInfo::product_version slice into a String.
Sourcepub fn special_build(&self) -> Option<String>
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>
impl<'a> Clone for StringFileInfo<'a>
Source§fn clone(&self) -> StringFileInfo<'a>
fn clone(&self) -> StringFileInfo<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more