pub struct EngineInstallReceipt {
pub engine_kind: EngineKind,
pub install_dir: String,
pub msi_inventory_snapshot: Option<MsiInventorySnapshot>,
pub engine_metadata: Option<EngineMetadata>,
}Expand description
Completion record returned by an engine after installation.
The receipt preserves the technical engine kind that executed the install, the final install directory reported by the engine, and any engine-specific metadata needed for future removal or repair. MSI engines may also attach a complete inventory snapshot for database persistence.
Fields§
§engine_kind: EngineKindEngine that produced the receipt.
install_dir: StringFinal install directory reported by the engine.
msi_inventory_snapshot: Option<MsiInventorySnapshot>Optional MSI inventory snapshot collected during install.
engine_metadata: Option<EngineMetadata>Optional engine-specific metadata.
Implementations§
Source§impl EngineInstallReceipt
impl EngineInstallReceipt
Sourcepub fn new(
engine_kind: EngineKind,
install_dir: impl Into<String>,
engine_metadata: Option<EngineMetadata>,
) -> Self
pub fn new( engine_kind: EngineKind, install_dir: impl Into<String>, engine_metadata: Option<EngineMetadata>, ) -> Self
Build a receipt for the given engine kind, install directory, and metadata.
Sourcepub fn install_dir(&self) -> &str
pub fn install_dir(&self) -> &str
Return the final install directory recorded in the receipt.
Trait Implementations§
Source§impl Clone for EngineInstallReceipt
impl Clone for EngineInstallReceipt
Source§fn clone(&self) -> EngineInstallReceipt
fn clone(&self) -> EngineInstallReceipt
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 EngineInstallReceipt
impl Debug for EngineInstallReceipt
Source§impl<'de> Deserialize<'de> for EngineInstallReceipt
impl<'de> Deserialize<'de> for EngineInstallReceipt
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 EngineInstallReceipt
impl PartialEq for EngineInstallReceipt
Source§impl Serialize for EngineInstallReceipt
impl Serialize for EngineInstallReceipt
impl Eq for EngineInstallReceipt
impl StructuralPartialEq for EngineInstallReceipt
Auto Trait Implementations§
impl Freeze for EngineInstallReceipt
impl RefUnwindSafe for EngineInstallReceipt
impl Send for EngineInstallReceipt
impl Sync for EngineInstallReceipt
impl Unpin for EngineInstallReceipt
impl UnwindSafe for EngineInstallReceipt
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