pub struct InstallReceipt {
pub homebrew_version: String,
pub installed_as_dependency: bool,
pub installed_on_request: bool,
pub install_time: u64,
pub source: ReceiptSource,
pub runtime_dependencies: Vec<RuntimeDependency>,
pub poured_from_bottle: bool,
pub changed_files: Vec<String>,
}Expand description
INSTALL_RECEIPT.json structure (Homebrew compatible)
Fields§
§homebrew_version: String§installed_as_dependency: bool§installed_on_request: bool§install_time: u64§source: ReceiptSource§runtime_dependencies: Vec<RuntimeDependency>§poured_from_bottle: bool§changed_files: Vec<String>Implementations§
Source§impl InstallReceipt
impl InstallReceipt
Sourcepub fn new_bottle(
tap: &str,
on_request: bool,
dependencies: Vec<RuntimeDependency>,
) -> Self
pub fn new_bottle( tap: &str, on_request: bool, dependencies: Vec<RuntimeDependency>, ) -> Self
Create a new receipt for a bottle installation
Sourcepub fn new_source(
tap: &str,
on_request: bool,
dependencies: Vec<RuntimeDependency>,
) -> Self
pub fn new_source( tap: &str, on_request: bool, dependencies: Vec<RuntimeDependency>, ) -> Self
Create a new receipt for a source-built installation
Trait Implementations§
Source§impl Clone for InstallReceipt
impl Clone for InstallReceipt
Source§fn clone(&self) -> InstallReceipt
fn clone(&self) -> InstallReceipt
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 InstallReceipt
impl Debug for InstallReceipt
Source§impl<'de> Deserialize<'de> for InstallReceipt
impl<'de> Deserialize<'de> for InstallReceipt
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
Auto Trait Implementations§
impl Freeze for InstallReceipt
impl RefUnwindSafe for InstallReceipt
impl Send for InstallReceipt
impl Sync for InstallReceipt
impl Unpin for InstallReceipt
impl UnwindSafe for InstallReceipt
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