#[non_exhaustive]pub struct SshConfig {
pub id: Option<String>,
pub name: Option<String>,
pub ssh_host: Option<String>,
pub ssh_port: Option<u16>,
pub ssh_identity_file: Option<String>,
pub start_directory: Option<String>,
pub extra: Extra,
}Expand description
An entry of sshConfigs.
Add SSH connections to the
Desktop
environment selector. Administrators use sshConfigs to distribute shared connections to a
team.
Docs: sshConfigs.
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>Unique identifier for this SSH config, used to match configs across settings sources.
- Values: string
- Default: unset
Docs: id.
name: Option<String>§ssh_host: Option<String>SSH host in the form “user@hostname” or “hostname”, or a host alias from ~/.ssh/config.
- Values: string
- Default: unset
Docs: sshHost.
ssh_port: Option<u16>§ssh_identity_file: Option<String>§start_directory: Option<String>Default working directory on the remote host; supports tilde expansion. Defaults to the remote user home directory.
- Values: string
- 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<'de> Deserialize<'de> for SshConfig
impl<'de> Deserialize<'de> for SshConfig
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 StructuralPartialEq for SshConfig
Auto Trait Implementations§
impl Forget for SshConfig
impl Freeze for SshConfig
impl Move for SshConfig
impl RefUnwindSafe for SshConfig
impl Send for SshConfig
impl Sync for SshConfig
impl Unpin for SshConfig
impl UnsafeUnpin for SshConfig
impl UnwindSafe for SshConfig
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