pub struct SshConfigMatch {
pub user: Option<String>,
pub port: Option<u16>,
pub identity_file: Option<String>,
pub proxy_jump: Option<String>,
pub matched: bool,
}Expand description
Settings found in user’s SSH config for a host
Fields§
§user: Option<String>User from SSH config
port: Option<u16>Port from SSH config
identity_file: Option<String>Identity file path from SSH config
proxy_jump: Option<String>ProxyJump (jump host) from SSH config
matched: boolWhether any match was found
Implementations§
Source§impl SshConfigMatch
impl SshConfigMatch
Sourcepub fn has_settings(&self) -> bool
pub fn has_settings(&self) -> bool
Check if any useful settings were found
Sourcepub fn display_settings(&self) -> String
pub fn display_settings(&self) -> String
Format found settings for display
Trait Implementations§
Source§impl Clone for SshConfigMatch
impl Clone for SshConfigMatch
Source§fn clone(&self) -> SshConfigMatch
fn clone(&self) -> SshConfigMatch
Returns a duplicate of the value. Read more
1.0.0 · 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 SshConfigMatch
impl Debug for SshConfigMatch
Source§impl Default for SshConfigMatch
impl Default for SshConfigMatch
Source§fn default() -> SshConfigMatch
fn default() -> SshConfigMatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SshConfigMatch
impl RefUnwindSafe for SshConfigMatch
impl Send for SshConfigMatch
impl Sync for SshConfigMatch
impl Unpin for SshConfigMatch
impl UnwindSafe for SshConfigMatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request