pub struct Command {
pub id: String,
pub version: String,
pub request_id: String,
pub job_id: Option<String>,
pub shell: Shell,
pub script: String,
pub timeout_secs: u64,
pub jitter_secs: Option<u64>,
pub run_as: RunAs,
pub cwd: Option<String>,
}Fields§
§id: String§version: String§request_id: String§job_id: Option<String>§shell: Shell§script: String§timeout_secs: u64§jitter_secs: Option<u64>§run_as: RunAsWhich (token, session) combination the agent should launch the
child process under (v0.21). Defaults to RunAs::System for
back-compat with pre-v0.21 backends that don’t send this field.
cwd: Option<String>Working directory for the spawned child (v0.21.1). None ⇒
inherit the agent’s cwd. Pre-v0.21.1 wire payloads omit this
field and parse fine via #[serde(default)].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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