pub struct CommandHookParams {
pub command: String,
pub if: Option<String>,
pub shell: Option<HookShell>,
pub timeout: Option<u64>,
pub status_message: Option<String>,
pub once: Option<bool>,
pub async_run: Option<bool>,
pub async_rewake: Option<bool>,
}Expand description
Parameters for a shell command hook.
Fields§
§command: String§if: Option<String>§shell: Option<HookShell>§timeout: Option<u64>§status_message: Option<String>§once: Option<bool>§async_run: Option<bool>§async_rewake: Option<bool>Trait Implementations§
Source§impl Clone for CommandHookParams
impl Clone for CommandHookParams
Source§fn clone(&self) -> CommandHookParams
fn clone(&self) -> CommandHookParams
Returns a duplicate 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 CommandHookParams
impl Debug for CommandHookParams
Source§impl<'de> Deserialize<'de> for CommandHookParams
impl<'de> Deserialize<'de> for CommandHookParams
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
Auto Trait Implementations§
impl Freeze for CommandHookParams
impl RefUnwindSafe for CommandHookParams
impl Send for CommandHookParams
impl Sync for CommandHookParams
impl Unpin for CommandHookParams
impl UnsafeUnpin for CommandHookParams
impl UnwindSafe for CommandHookParams
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