pub enum EngineMetadata {
Msix {
package_full_name: String,
scope: InstallScope,
},
Msi {
product_code: String,
upgrade_code: Option<String>,
scope: InstallScope,
registry_keys: Vec<String>,
shortcuts: Vec<String>,
},
NativeExe {
quiet_uninstall_command: Option<String>,
uninstall_command: Option<String>,
},
}Expand description
Engine-specific metadata attached to an installation record.
Variants§
Msix
Metadata for an MSIX installation.
Fields
§
scope: InstallScopeInstall scope reported by the engine.
Msi
Metadata for an MSI installation.
Fields
§
scope: InstallScopeInstall scope reported by the engine.
NativeExe
Metadata for a native executable installation.
Implementations§
Source§impl EngineMetadata
impl EngineMetadata
pub fn msix(package_full_name: impl Into<String>, scope: InstallScope) -> Self
pub fn msix_package_full_name(&self) -> Option<&str>
Sourcepub fn native_exe(
quiet_uninstall_command: Option<String>,
uninstall_command: Option<String>,
) -> Self
pub fn native_exe( quiet_uninstall_command: Option<String>, uninstall_command: Option<String>, ) -> Self
Build native-executable metadata from discovered uninstall commands.
Sourcepub fn native_exe_quiet_uninstall_command(&self) -> Option<&str>
pub fn native_exe_quiet_uninstall_command(&self) -> Option<&str>
Return the quiet uninstall command if the metadata contains one.
Sourcepub fn native_exe_uninstall_command(&self) -> Option<&str>
pub fn native_exe_uninstall_command(&self) -> Option<&str>
Return the best available uninstall command for a native executable.
Trait Implementations§
Source§impl Clone for EngineMetadata
impl Clone for EngineMetadata
Source§fn clone(&self) -> EngineMetadata
fn clone(&self) -> EngineMetadata
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 EngineMetadata
impl Debug for EngineMetadata
Source§impl<'de> Deserialize<'de> for EngineMetadata
impl<'de> Deserialize<'de> for EngineMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EngineMetadata
impl PartialEq for EngineMetadata
Source§impl Serialize for EngineMetadata
impl Serialize for EngineMetadata
impl Eq for EngineMetadata
impl StructuralPartialEq for EngineMetadata
Auto Trait Implementations§
impl Freeze for EngineMetadata
impl RefUnwindSafe for EngineMetadata
impl Send for EngineMetadata
impl Sync for EngineMetadata
impl Unpin for EngineMetadata
impl UnwindSafe for EngineMetadata
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