Struct proto_pdk_api::RunHookResult
source · pub struct RunHookResult {
pub args: Option<Vec<String>>,
pub env: Option<FxHashMap<String, String>>,
}
Expand description
Output returned from the pre_run
hook.
Fields§
§args: Option<Vec<String>>
Additional arguments to append to the running command.
env: Option<FxHashMap<String, String>>
Additional environment variables to pass to the running command. Will overwrite any existing variables.
Trait Implementations§
source§impl Clone for RunHookResult
impl Clone for RunHookResult
source§fn clone(&self) -> RunHookResult
fn clone(&self) -> RunHookResult
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 RunHookResult
impl Debug for RunHookResult
source§impl Default for RunHookResult
impl Default for RunHookResult
source§fn default() -> RunHookResult
fn default() -> RunHookResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RunHookResultwhere
RunHookResult: Default,
impl<'de> Deserialize<'de> for RunHookResultwhere
RunHookResult: 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 RunHookResult
impl PartialEq for RunHookResult
source§fn eq(&self, other: &RunHookResult) -> bool
fn eq(&self, other: &RunHookResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RunHookResult
impl Serialize for RunHookResult
impl StructuralPartialEq for RunHookResult
Auto Trait Implementations§
impl Freeze for RunHookResult
impl RefUnwindSafe for RunHookResult
impl Send for RunHookResult
impl Sync for RunHookResult
impl Unpin for RunHookResult
impl UnwindSafe for RunHookResult
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