pub struct SshConfig {
pub host: String,
pub port: u16,
pub username: String,
pub password: Option<String>,
pub private_key_path: Option<String>,
pub session_timeout_seconds: Option<u64>,
pub timeout_seconds: Option<u64>,
}
Expand description
SSH连接配置
Fields§
§host: String
§port: u16
§username: String
§password: Option<String>
§private_key_path: Option<String>
§session_timeout_seconds: Option<u64>
§timeout_seconds: Option<u64>
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
Auto Trait Implementations§
impl Freeze for SshConfig
impl RefUnwindSafe for SshConfig
impl Send for SshConfig
impl Sync for SshConfig
impl Unpin 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