pub struct LocalShellExecAction {
pub command: Vec<String>,
pub timeout_ms: Option<u64>,
pub working_directory: Option<String>,
pub env: HashMap<String, String>,
pub user: Option<String>,
}
Expand description
Execute a shell command on the server.
Fields§
§command: Vec<String>
The command to run.
timeout_ms: Option<u64>
Optional timeout in milliseconds for the command.
working_directory: Option<String>
Optional working directory to run the command in.
env: HashMap<String, String>
Environment variables to set for the command.
user: Option<String>
Optional user to run the command as.
Implementations§
Source§impl LocalShellExecAction
impl LocalShellExecAction
Sourcepub fn builder() -> LocalShellExecActionBuilder<((), (), (), (), ())>
pub fn builder() -> LocalShellExecActionBuilder<((), (), (), (), ())>
Create a builder for building LocalShellExecAction
.
On the builder, call .command(...)
, .timeout_ms(...)
(optional), .working_directory(...)
(optional), .env(...)
, .user(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of LocalShellExecAction
.
Trait Implementations§
Source§impl Clone for LocalShellExecAction
impl Clone for LocalShellExecAction
Source§fn clone(&self) -> LocalShellExecAction
fn clone(&self) -> LocalShellExecAction
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 LocalShellExecAction
impl Debug for LocalShellExecAction
Source§impl<'de> Deserialize<'de> for LocalShellExecAction
impl<'de> Deserialize<'de> for LocalShellExecAction
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 LocalShellExecAction
impl PartialEq for LocalShellExecAction
Source§impl Serialize for LocalShellExecAction
impl Serialize for LocalShellExecAction
impl StructuralPartialEq for LocalShellExecAction
Auto Trait Implementations§
impl Freeze for LocalShellExecAction
impl RefUnwindSafe for LocalShellExecAction
impl Send for LocalShellExecAction
impl Sync for LocalShellExecAction
impl Unpin for LocalShellExecAction
impl UnwindSafe for LocalShellExecAction
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