pub struct RunCommandArgs {
pub pane: String,
pub command: String,
pub seconds: Option<u64>,
pub suppress_history: bool,
}Expand description
Arguments for running a command and waiting for it.
Fields§
§pane: StringThe %-prefixed pane to run in.
command: StringThe command for the pane’s trusted POSIX-compatible shell.
Shell reserved words and special builtins must retain their standard
meanings. The command runs inside a subshell, so several lines are fine
and a bare exit does not end the pane’s own shell. Invalid syntax is
contained and completes with the shell’s nonzero status. Valid inherited
Bash and zsh ERR and DEBUG traps remain visible to the command while
the pane’s parent-shell traps and options remain unchanged.
seconds: Option<u64>How long to allow, in seconds. Defaults to 30, capped at 600.
suppress_history: boolWhether to keep the command out of the shell’s history.
Trait Implementations§
Source§impl Debug for RunCommandArgs
impl Debug for RunCommandArgs
Source§impl<'de> Deserialize<'de> for RunCommandArgs
impl<'de> Deserialize<'de> for RunCommandArgs
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 JsonSchema for RunCommandArgs
impl JsonSchema for RunCommandArgs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RunCommandArgs
impl RefUnwindSafe for RunCommandArgs
impl Send for RunCommandArgs
impl Sync for RunCommandArgs
impl Unpin for RunCommandArgs
impl UnsafeUnpin for RunCommandArgs
impl UnwindSafe for RunCommandArgs
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