Enum proto_pdk_api::BuildInstruction
source · pub enum BuildInstruction {
MakeExecutable(PathBuf),
MoveFile(PathBuf, PathBuf),
RemoveDir(PathBuf),
RemoveFile(PathBuf),
RequestScript(String),
RunCommand(Box<CommandInstruction>),
}
Expand description
An instruction to execute.
Variants§
MakeExecutable(PathBuf)
Update a file and make it executable.
MoveFile(PathBuf, PathBuf)
Move a file from source to destination.
RemoveDir(PathBuf)
Remove a directory.
RemoveFile(PathBuf)
Remove a file.
RequestScript(String)
Request (curl, wget, etc) a script and download to the host.
RunCommand(Box<CommandInstruction>)
Execute a command as a child process.
Trait Implementations§
source§impl Clone for BuildInstruction
impl Clone for BuildInstruction
source§fn clone(&self) -> BuildInstruction
fn clone(&self) -> BuildInstruction
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 BuildInstruction
impl Debug for BuildInstruction
source§impl<'de> Deserialize<'de> for BuildInstruction
impl<'de> Deserialize<'de> for BuildInstruction
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 BuildInstruction
impl PartialEq for BuildInstruction
source§fn eq(&self, other: &BuildInstruction) -> bool
fn eq(&self, other: &BuildInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BuildInstruction
impl Serialize for BuildInstruction
impl StructuralPartialEq for BuildInstruction
Auto Trait Implementations§
impl Freeze for BuildInstruction
impl RefUnwindSafe for BuildInstruction
impl Send for BuildInstruction
impl Sync for BuildInstruction
impl Unpin for BuildInstruction
impl UnwindSafe for BuildInstruction
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