pub struct NewSessionSpec {
pub session_name: Option<SessionName>,
pub working_directory: Option<String>,
pub detached: bool,
pub size: Option<TerminalSizeSpec>,
pub process: ProcessSpec,
pub group_target: Option<SessionName>,
pub reuse: NewSessionReuse,
pub window_name: Option<String>,
pub print_session_info: bool,
pub print_format: Option<String>,
}Expand description
SDK value object for new-session.
Fields§
§session_name: Option<SessionName>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<TerminalSizeSpec>Initial pane geometry, when explicitly requested.
process: ProcessSpecProcess-spawn fields for the initial pane.
group_target: Option<SessionName>Optional target session or group name for grouped-session creation.
reuse: NewSessionReuseReuse and client-detach flags.
window_name: Option<String>Optional initial active-window name.
print_session_info: boolWhether to print formatted session information.
print_format: Option<String>Optional format template used when printing session information.
Trait Implementations§
Source§impl Clone for NewSessionSpec
impl Clone for NewSessionSpec
Source§fn clone(&self) -> NewSessionSpec
fn clone(&self) -> NewSessionSpec
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 NewSessionSpec
impl Debug for NewSessionSpec
Source§impl Default for NewSessionSpec
impl Default for NewSessionSpec
Source§fn default() -> NewSessionSpec
fn default() -> NewSessionSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NewSessionSpec
impl<'de> Deserialize<'de> for NewSessionSpec
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
impl Eq for NewSessionSpec
Source§impl From<NewSessionSpec> for RmuxCommandKind
impl From<NewSessionSpec> for RmuxCommandKind
Source§fn from(value: NewSessionSpec) -> Self
fn from(value: NewSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<NewSessionSpec> for Request
impl From<NewSessionSpec> for Request
Source§fn from(value: NewSessionSpec) -> Self
fn from(value: NewSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<NewSessionSpec> for RmuxCommand
impl From<NewSessionSpec> for RmuxCommand
Source§fn from(value: NewSessionSpec) -> Self
fn from(value: NewSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<NewSessionSpec> for NewSessionExtRequest
impl From<NewSessionSpec> for NewSessionExtRequest
Source§fn from(value: NewSessionSpec) -> Self
fn from(value: NewSessionSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NewSessionSpec
impl PartialEq for NewSessionSpec
Source§fn eq(&self, other: &NewSessionSpec) -> bool
fn eq(&self, other: &NewSessionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NewSessionSpec
impl Serialize for NewSessionSpec
impl StructuralPartialEq for NewSessionSpec
Auto Trait Implementations§
impl Freeze for NewSessionSpec
impl RefUnwindSafe for NewSessionSpec
impl Send for NewSessionSpec
impl Sync for NewSessionSpec
impl Unpin for NewSessionSpec
impl UnsafeUnpin for NewSessionSpec
impl UnwindSafe for NewSessionSpec
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