Struct EngineInstallReceipt
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§
§impl EngineInstallReceipt
impl EngineInstallReceipt
pub fn new(
engine_kind: EngineKind,
install_dir: impl Into<String>,
engine_metadata: Option<EngineMetadata>,
) -> EngineInstallReceipt
pub fn new( engine_kind: EngineKind, install_dir: impl Into<String>, engine_metadata: Option<EngineMetadata>, ) -> EngineInstallReceipt
Build a receipt for the given engine kind, install directory, and metadata.
pub fn install_dir(&self) -> &str
pub fn install_dir(&self) -> &str
Return the final install directory recorded in the receipt.
Trait Implementations§
§impl Clone for EngineInstallReceipt
impl Clone for EngineInstallReceipt
§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 more§impl Debug for EngineInstallReceipt
impl Debug for EngineInstallReceipt
§impl<'de> Deserialize<'de> for EngineInstallReceipt
impl<'de> Deserialize<'de> for EngineInstallReceipt
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EngineInstallReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EngineInstallReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for EngineInstallReceipt
impl PartialEq for EngineInstallReceipt
§impl Serialize for EngineInstallReceipt
impl Serialize for EngineInstallReceipt
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.