pub struct SystemDependency {
pub bin: Option<String>,
pub pkgconfig: Option<String>,
pub sharedlib: Option<String>,
pub command: Option<String>,
pub version: Option<String>,
pub optional: Option<String>,
pub packages: BTreeMap<String, String>,
}Expand description
A single PLUGIN.systemDependencies entry — a system prerequisite the
plugin needs before it can install (build tools, libraries, …). Exactly
one of bin/pkgconfig/sharedlib/command must be set; packages maps
a package-manager name (brew, apt, dnf, pacman, apk) to the package that
provides the capability, used only as a remediation hint.
Fields§
§bin: Option<String>§pkgconfig: Option<String>§command: Option<String>§version: Option<String>§optional: Option<String>§packages: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for SystemDependency
impl Clone for SystemDependency
Source§fn clone(&self) -> SystemDependency
fn clone(&self) -> SystemDependency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SystemDependency
impl Debug for SystemDependency
Source§impl Default for SystemDependency
impl Default for SystemDependency
Source§fn default() -> SystemDependency
fn default() -> SystemDependency
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemDependency
impl RefUnwindSafe for SystemDependency
impl Send for SystemDependency
impl Sync for SystemDependency
impl Unpin for SystemDependency
impl UnsafeUnpin for SystemDependency
impl UnwindSafe for SystemDependency
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue, i: usize, to: Option<&str>, lua: &Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &RawLua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &RawLua, ) -> Result<T, Error>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more