pub struct NewSessionExtRequest {Show 14 fields
pub session_name: Option<SessionName>,
pub working_directory: Option<String>,
pub detached: bool,
pub size: Option<TerminalSize>,
pub environment: Option<Vec<String>>,
pub group_target: Option<SessionName>,
pub attach_if_exists: bool,
pub detach_other_clients: bool,
pub kill_other_clients: bool,
pub flags: Option<Vec<String>>,
pub window_name: Option<String>,
pub print_session_info: bool,
pub print_format: Option<String>,
pub command: Option<Vec<String>>,
}Expand description
Extended request payload for new-session.
Fields§
§session_name: Option<SessionName>The optional exact session name to create.
working_directory: Option<String>Optional tmux format-expanded start directory for the new session.
detached: boolWhether the session should remain detached after creation.
size: Option<TerminalSize>The initial pane geometry, when explicitly requested.
environment: Option<Vec<String>>Optional per-spawn environment overrides in NAME=VALUE form.
group_target: Option<SessionName>The optional target session or group name for grouped-session creation.
attach_if_exists: boolWhether an existing target session should be attached instead of erroring.
detach_other_clients: boolWhether other attached clients should be detached before attaching.
kill_other_clients: boolWhether other attached clients should be detached and terminated.
flags: Option<Vec<String>>Optional tmux client-flag names such as read-only or active-pane.
window_name: Option<String>The optional initial active-window name for standalone session creation.
print_session_info: boolWhether the created session should print formatted session information.
print_format: Option<String>The optional format template used when printing session information.
command: Option<Vec<String>>Optional shell command argv. A single argument is executed via $SHELL -c.
Trait Implementations§
Source§impl Clone for NewSessionExtRequest
impl Clone for NewSessionExtRequest
Source§fn clone(&self) -> NewSessionExtRequest
fn clone(&self) -> NewSessionExtRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NewSessionExtRequest
impl Debug for NewSessionExtRequest
Source§impl<'de> Deserialize<'de> for NewSessionExtRequest
impl<'de> Deserialize<'de> for NewSessionExtRequest
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>,
Source§impl PartialEq for NewSessionExtRequest
impl PartialEq for NewSessionExtRequest
Source§fn eq(&self, other: &NewSessionExtRequest) -> bool
fn eq(&self, other: &NewSessionExtRequest) -> bool
self and other values to be equal, and is used by ==.