Struct brew::Package[][src]

pub struct Package {
Show 27 fields pub name: String, pub full_name: String, pub aliases: Vec<String>, pub oldname: Option<String>, pub desc: Option<String>, pub homepage: Option<String>, pub versions: Versions, pub urls: HashMap<String, Url>, pub revision: usize, pub version_scheme: usize, pub bottle: HashMap<String, Bottle>, pub keg_only: bool, pub bottle_disabled: bool, pub options: Vec<BrewOption>, pub build_dependencies: Vec<String>, pub dependencies: Vec<String>, pub recommended_dependencies: Vec<String>, pub optional_dependencies: Vec<String>, pub uses_from_macos: Vec<MapOrString>, pub requirements: Vec<Requirment>, pub conflicts_with: Vec<String>, pub caveats: Option<String>, pub installed: Vec<Installed>, pub linked_keg: Option<String>, pub pinned: bool, pub outdated: bool, pub analytics: Option<Analytics>,
}
Expand description

Represents a homebrew package, which may or may not be installed.

Fields

name: Stringfull_name: Stringaliases: Vec<String>oldname: Option<String>desc: Option<String>homepage: Option<String>versions: Versionsurls: HashMap<String, Url>revision: usizeversion_scheme: usizebottle: HashMap<String, Bottle>keg_only: boolbottle_disabled: booloptions: Vec<BrewOption>build_dependencies: Vec<String>dependencies: Vec<String>recommended_dependencies: Vec<String>optional_dependencies: Vec<String>uses_from_macos: Vec<MapOrString>requirements: Vec<Requirment>conflicts_with: Vec<String>caveats: Option<String>installed: Vec<Installed>linked_keg: Option<String>pinned: booloutdated: boolanalytics: Option<Analytics>

Implementations

Creates package, filling out struct from the command line toole.

Attempts to install a package, reinstalling a package if it is already installed.

Check if a package is installed.

The package options that the package was installed with.

Uninstalls the package.

Pin forumla to prevent automatic updates/upgrades.

Unpin formula to allow automatic updates/upgrades.

Upgrade formula.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.