Struct proto_pdk_api::DependencyConfig
source · pub struct DependencyConfig {
pub arch: Option<SystemArch>,
pub dep: DependencyName,
pub manager: Option<SystemPackageManager>,
pub os: Option<SystemOS>,
pub sudo: bool,
pub version: Option<String>,
}
Expand description
Configuration for one or many system dependencies (packages).
Fields§
§arch: Option<SystemArch>
Only install on this architecture.
dep: DependencyName
The dependency name or name(s) to install.
manager: Option<SystemPackageManager>
Only install with this package manager.
os: Option<SystemOS>
Only install on this operating system.
sudo: bool
Install using sudo.
version: Option<String>
The version to install.
Implementations§
source§impl DependencyConfig
impl DependencyConfig
sourcepub fn get_package_names(
&self,
os: &SystemOS,
pm: &SystemPackageManager
) -> Result<Vec<String>, Error>
pub fn get_package_names( &self, os: &SystemOS, pm: &SystemPackageManager ) -> Result<Vec<String>, Error>
Get a list of package names for hte provided OS and package manager.
Trait Implementations§
source§impl Clone for DependencyConfig
impl Clone for DependencyConfig
source§fn clone(&self) -> DependencyConfig
fn clone(&self) -> DependencyConfig
Returns a copy 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 DependencyConfig
impl Debug for DependencyConfig
source§impl Default for DependencyConfig
impl Default for DependencyConfig
source§fn default() -> DependencyConfig
fn default() -> DependencyConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DependencyConfigwhere
DependencyConfig: Default,
impl<'de> Deserialize<'de> for DependencyConfigwhere
DependencyConfig: Default,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DependencyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DependencyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DependencyConfig
impl PartialEq for DependencyConfig
source§fn eq(&self, other: &DependencyConfig) -> bool
fn eq(&self, other: &DependencyConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DependencyConfig
impl Serialize for DependencyConfig
source§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 DependencyConfig
impl StructuralPartialEq for DependencyConfig
Auto Trait Implementations§
impl Freeze for DependencyConfig
impl RefUnwindSafe for DependencyConfig
impl Send for DependencyConfig
impl Sync for DependencyConfig
impl Unpin for DependencyConfig
impl UnwindSafe for DependencyConfig
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