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: DataTypeBinary or text data type
key: Stringresource key string (language code-page hex string)
info: FileInfoVS_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 duplicate 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 moreSource§impl Debug for VersionInfo
impl Debug for VersionInfo
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more