#[non_exhaustive]pub struct SshHostCommand {
pub id: Option<String>,
pub name: Option<String>,
pub command: Option<String>,
pub ssh_identity_file: Option<String>,
pub start_directory: Option<String>,
pub extra: Extra,
}Expand description
An entry of sshHostCommands: a desktop SSH connection opened by a
command.
Add SSH connections whose host comes from a command to the Desktop environment selector. When you create a connection or create another machine for it, Desktop runs the entry’s command on your computer and connects to the host that the command prints.
Docs: sshHostCommands.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>§name: Option<String>§command: Option<String>The program and its arguments that open the connection. The desktop app does not read it as shell syntax: no pipes or variables.
- Values: string (required)
- Default: unset
Docs: command.
ssh_identity_file: Option<String>§start_directory: Option<String>The working directory on the remote host.
- Values: string, a path
- Default: unset
Docs: startDirectory.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.
Trait Implementations§
Source§impl Clone for SshHostCommand
impl Clone for SshHostCommand
Source§impl Debug for SshHostCommand
impl Debug for SshHostCommand
Source§impl Default for SshHostCommand
impl Default for SshHostCommand
Source§impl<'de> Deserialize<'de> for SshHostCommand
impl<'de> Deserialize<'de> for SshHostCommand
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 SshHostCommand
impl PartialEq for SshHostCommand
Source§impl Serialize for SshHostCommand
impl Serialize for SshHostCommand
impl StructuralPartialEq for SshHostCommand
Auto Trait Implementations§
impl Forget for SshHostCommand
impl Freeze for SshHostCommand
impl Move for SshHostCommand
impl RefUnwindSafe for SshHostCommand
impl Send for SshHostCommand
impl Sync for SshHostCommand
impl Unpin for SshHostCommand
impl UnsafeUnpin for SshHostCommand
impl UnwindSafe for SshHostCommand
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