Struct proto_pdk_api::InstallHook
source · pub struct InstallHook {
pub context: ToolContext,
pub passthrough_args: Vec<String>,
pub pinned: bool,
}
Expand description
Input passed to the pre_install
and post_install
hooks,
while a proto install
command is running.
Fields§
§context: ToolContext
Current tool context.
passthrough_args: Vec<String>
Arguments passed after --
that was directly passed to the tool’s binary.
pinned: bool
Whether the resolved version was pinned
Trait Implementations§
source§impl Clone for InstallHook
impl Clone for InstallHook
source§fn clone(&self) -> InstallHook
fn clone(&self) -> InstallHook
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 InstallHook
impl Debug for InstallHook
source§impl Default for InstallHook
impl Default for InstallHook
source§fn default() -> InstallHook
fn default() -> InstallHook
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InstallHookwhere
InstallHook: Default,
impl<'de> Deserialize<'de> for InstallHookwhere
InstallHook: 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 InstallHook
impl PartialEq for InstallHook
source§fn eq(&self, other: &InstallHook) -> bool
fn eq(&self, other: &InstallHook) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InstallHook
impl Serialize for InstallHook
impl StructuralPartialEq for InstallHook
Auto Trait Implementations§
impl Freeze for InstallHook
impl RefUnwindSafe for InstallHook
impl Send for InstallHook
impl Sync for InstallHook
impl Unpin for InstallHook
impl UnwindSafe for InstallHook
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