Struct proto_pdk_api::RunHook
source · pub struct RunHook {
pub context: ToolContext,
pub globals_dir: Option<VirtualPath>,
pub globals_prefix: Option<String>,
pub passthrough_args: Vec<String>,
}
Expand description
Input passed to the pre_run
hook, before a proto run
command
or language binary is ran.
Fields§
§context: ToolContext
Current tool context.
globals_dir: Option<VirtualPath>
Path to the global packages directory for the tool, if found.
globals_prefix: Option<String>
A prefix applied to the file names of globally installed packages.
passthrough_args: Vec<String>
Arguments passed after --
that was directly passed to the tool’s binary.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RunHook
impl<'de> Deserialize<'de> for RunHook
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 RunHook
impl PartialEq for RunHook
impl StructuralPartialEq for RunHook
Auto Trait Implementations§
impl Freeze for RunHook
impl RefUnwindSafe for RunHook
impl Send for RunHook
impl Sync for RunHook
impl Unpin for RunHook
impl UnwindSafe for RunHook
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