Struct proto_pdk_api::ExecutableConfig
source · pub struct ExecutableConfig {
pub exe_path: Option<PathBuf>,
pub no_bin: bool,
pub no_shim: bool,
pub shim_before_args: Option<String>,
pub shim_after_args: Option<String>,
}
Expand description
Configuration for generated shim and symlinked binary files.
Fields§
§exe_path: Option<PathBuf>
The binary file to execute, relative from the tool directory. Does not support virtual paths.
The following scenarios are powered by this field:
- Is the primary executable.
- For primary and secondary bins, the source file to be symlinked, and the extension to use for the symlink file itself.
- For primary shim, this field is ignored.
- For secondary shims, the file to pass to
proto run --bin
.
no_bin: bool
Do not symlink a binary in ~/.proto/bin
.
no_shim: bool
Do not generate a shim in ~/.proto/shims
.
shim_before_args: Option<String>
Custom args to prepend to user-provided args within the generated shim.
shim_after_args: Option<String>
Custom args to append to user-provided args within the generated shim.
Implementations§
Trait Implementations§
source§impl Clone for ExecutableConfig
impl Clone for ExecutableConfig
source§fn clone(&self) -> ExecutableConfig
fn clone(&self) -> ExecutableConfig
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 ExecutableConfig
impl Debug for ExecutableConfig
source§impl Default for ExecutableConfig
impl Default for ExecutableConfig
source§fn default() -> ExecutableConfig
fn default() -> ExecutableConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExecutableConfigwhere
ExecutableConfig: Default,
impl<'de> Deserialize<'de> for ExecutableConfigwhere
ExecutableConfig: Default,
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 ExecutableConfig
impl PartialEq for ExecutableConfig
source§fn eq(&self, other: &ExecutableConfig) -> bool
fn eq(&self, other: &ExecutableConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecutableConfig
impl Serialize for ExecutableConfig
impl Eq for ExecutableConfig
impl StructuralEq for ExecutableConfig
impl StructuralPartialEq for ExecutableConfig
Auto Trait Implementations§
impl RefUnwindSafe for ExecutableConfig
impl Send for ExecutableConfig
impl Sync for ExecutableConfig
impl Unpin for ExecutableConfig
impl UnwindSafe for ExecutableConfig
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