pub struct Dependency {
pub binary: String,
pub version: String,
pub install_hint: String,
pub install_hints: InstallHints,
pub homepage: String,
}Expand description
An external binary that a processor requires at runtime.
Fields§
§binary: String§version: String§install_hint: StringGeneric install hint, used when no platform-specific hint applies. Optional: a dependency may carry only per-platform hints.
install_hints: InstallHintsOptional per-platform overrides of the generic hint.
homepage: StringImplementations§
Source§impl Dependency
impl Dependency
Sourcepub fn install_hint_for(&self, platform: Option<HostPlatform>) -> &str
pub fn install_hint_for(&self, platform: Option<HostPlatform>) -> &str
Install hint for platform, falling back to the generic install_hint,
then to GENERIC_INSTALL_HINT when neither is set.
Sourcepub fn host_install_hint(&self) -> &str
pub fn host_install_hint(&self) -> &str
Install hint for the platform this binary is running on.
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§impl Debug for Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
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 Dependency
impl PartialEq for Dependency
Source§impl Serialize for Dependency
impl Serialize for Dependency
impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnsafeUnpin for Dependency
impl UnwindSafe for Dependency
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