pub struct ConnectionProfile {
pub url: String,
pub password_url: Option<String>,
pub headers: IndexMap<String, String>,
pub ssh_host: Option<String>,
pub ssh_user: Option<String>,
pub ssh_port: Option<u16>,
pub ssh_key: Option<String>,
pub proxy_url: Option<String>,
}Fields§
§url: String§password_url: Option<String>§headers: IndexMap<String, String>§ssh_host: Option<String>SSH bastion hostname or IP. When set, ferrule opens an SSH session
to this host and forwards a local port to url’s host:port. The
rest of the ssh_* keys configure the SSH session.
ssh_user: Option<String>SSH login username. Defaults to $USER at connect time.
ssh_port: Option<u16>SSH server port. Defaults to 22.
ssh_key: Option<String>Path to the SSH private key. Tilde and ${VAR} expansion happens
at connect time. When None, the key is resolved through the key
stack (CLI flag → env → default identity files → SSH agent).
proxy_url: Option<String>HTTP CONNECT proxy URL (e.g. http://proxy:8080).
Trait Implementations§
Source§impl Clone for ConnectionProfile
impl Clone for ConnectionProfile
Source§fn clone(&self) -> ConnectionProfile
fn clone(&self) -> ConnectionProfile
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 ConnectionProfile
impl Debug for ConnectionProfile
Source§impl<'de> Deserialize<'de> for ConnectionProfile
impl<'de> Deserialize<'de> for ConnectionProfile
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 ConnectionProfile
impl RefUnwindSafe for ConnectionProfile
impl Send for ConnectionProfile
impl Sync for ConnectionProfile
impl Unpin for ConnectionProfile
impl UnsafeUnpin for ConnectionProfile
impl UnwindSafe for ConnectionProfile
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