pub struct SessionConfig {
pub dsn_secret: Option<String>,
pub conninfo_secret: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub user: Option<String>,
pub dbname: Option<String>,
pub password_secret: Option<String>,
pub ssh: SshConfig,
pub container: ContainerConfig,
pub profile_pinned: bool,
}Fields§
§dsn_secret: Option<String>§conninfo_secret: Option<String>§host: Option<String>§port: Option<u16>§user: Option<String>§dbname: Option<String>§password_secret: Option<String>§ssh: SshConfig§container: ContainerConfig§profile_pinned: boolSet only when an administrator-locked readonly profile supplied this session, meaning the endpoint is the administrator’s and environment variables must not redirect it.
Deliberately absent from SessionConfigFlat, so it can never be set by
profile JSON or by a pipe session patch — only by the code path that
loads a locked profile.
Implementations§
Source§impl SessionConfig
impl SessionConfig
pub fn uses_ssh_transport(&self) -> bool
pub fn uses_container_transport(&self) -> bool
pub fn transport_kind(&self) -> Result<TransportKind, String>
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
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 SessionConfig
impl Debug for SessionConfig
Source§impl Default for SessionConfig
impl Default for SessionConfig
Source§fn default() -> SessionConfig
fn default() -> SessionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionConfig
impl<'de> Deserialize<'de> for SessionConfig
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 SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
impl UnwindSafe for SessionConfig
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