pub struct InstanceExecPost {
pub command: Option<Vec<String>>,
pub cwd: Option<String>,
pub environment: Option<HashMap<String, String>>,
pub group: Option<i32>,
pub height: Option<i64>,
pub interactive: Option<bool>,
pub record_output: Option<bool>,
pub user: Option<i32>,
pub wait_for_websocket: Option<bool>,
pub width: Option<i64>,
}Fields§
§command: Option<Vec<String>>Command and its arguments
cwd: Option<String>Current working directory for the command
environment: Option<HashMap<String, String>>Additional environment to pass to the command
group: Option<i32>GID of the user to spawn the command as
height: Option<i64>Terminal height in rows (for interactive)
interactive: Option<bool>Whether the command is to be spawned in interactive mode (singled PTY instead of 3 PIPEs)
record_output: Option<bool>Whether to capture the output for later download (requires non-interactive)
user: Option<i32>UID of the user to spawn the command as
wait_for_websocket: Option<bool>Whether to wait for all websockets to be connected before spawning the command
width: Option<i64>Terminal width in characters (for interactive)
Implementations§
Source§impl InstanceExecPost
impl InstanceExecPost
pub fn new() -> InstanceExecPost
Trait Implementations§
Source§impl Clone for InstanceExecPost
impl Clone for InstanceExecPost
Source§fn clone(&self) -> InstanceExecPost
fn clone(&self) -> InstanceExecPost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstanceExecPost
impl Debug for InstanceExecPost
Source§impl Default for InstanceExecPost
impl Default for InstanceExecPost
Source§fn default() -> InstanceExecPost
fn default() -> InstanceExecPost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceExecPost
impl<'de> Deserialize<'de> for InstanceExecPost
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 InstanceExecPost
impl PartialEq for InstanceExecPost
Source§fn eq(&self, other: &InstanceExecPost) -> bool
fn eq(&self, other: &InstanceExecPost) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstanceExecPost
impl Serialize for InstanceExecPost
impl StructuralPartialEq for InstanceExecPost
Auto Trait Implementations§
impl Freeze for InstanceExecPost
impl RefUnwindSafe for InstanceExecPost
impl Send for InstanceExecPost
impl Sync for InstanceExecPost
impl Unpin for InstanceExecPost
impl UnsafeUnpin for InstanceExecPost
impl UnwindSafe for InstanceExecPost
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