pub struct Actions {
pub install: Option<CommandLine>,
pub execute: CommandLine,
}Expand description
Action specification for a Candidate.
Fields§
§install: Option<CommandLine>Action to install a Candidate. If this is None, the candidate doesn’t require
installing (most likely because it is already installed/available). A Some(_) contains
the command to execute in order to install the Candidate.
execute: CommandLineAction to execute a Candidate. Must contain the command required to execute this candidate
Trait Implementations§
source§impl<'de> Deserialize<'de> for Actions
impl<'de> Deserialize<'de> for Actions
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 RefUnwindSafe for Actions
impl Send for Actions
impl Sync for Actions
impl Unpin for Actions
impl UnwindSafe for Actions
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