Struct winres_edit::VersionInfo
source · pub struct VersionInfo {
pub resource: Arc<Resource>,
pub data_type: DataType,
pub key: String,
pub info: FileInfo,
pub children: Vec<VersionInfoChild>,
}
Expand description
VS_VERSIONINFO
resource structure representation.
Fields§
§resource: Arc<Resource>
Associated Resource
data_type: DataType
Binary or text data type
key: String
resource key string (language code-page hex string)
info: FileInfo
VS_FIXEDFILEINFO representation. https://learn.microsoft.com/en-us/windows/win32/api/VerRsrc/ns-verrsrc-vs_fixedfileinfo
children: Vec<VersionInfoChild>
VS_VERSIONINFO child structures. One or multiple of:
Implementations§
source§impl VersionInfo
impl VersionInfo
pub fn try_to_vec(&self) -> Result<Vec<u8>, Error>
pub fn set_file_version(&mut self, v: &[u16; 4]) -> &mut Self
pub fn set_product_version(&mut self, v: &[u16; 4]) -> &mut Self
pub fn set_version(&mut self, v: &[u16; 4]) -> &mut Self
pub fn replace_string(&mut self, key: &str, text: &str) -> &mut Self
pub fn insert_string(&mut self, key: &str, text: &str) -> &mut Self
pub fn insert_strings(&mut self, tuples: &[(&str, &str)]) -> &mut Self
pub fn remove_string(&mut self, key: &str) -> &mut Self
pub fn ensure_language(&mut self, lang: &str) -> &mut Self
pub fn update(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl Clone for VersionInfo
impl Clone for VersionInfo
source§fn clone(&self) -> VersionInfo
fn clone(&self) -> VersionInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more