pub struct ResolvedConnection {
pub url: DatabaseUrl,
pub secret: Option<SecretString>,
pub ssh_config: Option<SshConfig>,
pub proxy: Option<ProxyConfig>,
}Expand description
Bundled output of connection resolution.
url has the resolved password injected (if any) so it remains a
complete connection string — the daemon path serializes this URL
over its socket, and several drivers parse the whole raw URL.
secret is the same resolved credential surfaced as a standalone
secrecy::SecretString, so the in-process connect path can hand it to
ferrule_sql::ConnectOptions::password rather than relying on the
URL. Credential resolution itself (env var, OS keyring,
interactive prompt) stays here in the CLI/config layer; ferrule-sql
only ever receives the already-resolved secret. secret is None
when no password was resolved.
SSH config and proxy config are plain data — the caller (CLI) still needs to resolve the actual SSH key source (file vs agent, passphrase prompt) and set up the tunnel.
Fields§
§url: DatabaseUrl§secret: Option<SecretString>§ssh_config: Option<SshConfig>§proxy: Option<ProxyConfig>Trait Implementations§
Source§impl Clone for ResolvedConnection
impl Clone for ResolvedConnection
Source§fn clone(&self) -> ResolvedConnection
fn clone(&self) -> ResolvedConnection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more