pub struct SecurityConfig {
pub command: Option<CommandConfig>,
pub default_mode: Option<String>,
pub env: Option<SecurityEnvConfig>,
pub force_command: Option<String>,
pub forwarding: Option<ForwardingConfig>,
pub max_sessions: Option<i64>,
pub shell: Option<SecurityShellConfig>,
pub signal: Option<SecuritySignalConfig>,
pub subsystem: Option<SubsystemConfig>,
pub tty: Option<SecurityTtyConfig>,
}
Fields§
§command: Option<CommandConfig>
§default_mode: Option<String>
§env: Option<SecurityEnvConfig>
§force_command: Option<String>
ForceCommand behaves similar to the OpenSSH ForceCommand option. When set this command overrides any command requested by the client and executes this command instead. The original command supplied by the client will be set in the SSH_ORIGINAL_COMMAND
environment variable. Setting ForceCommand changes subsystem requests into exec requests for the backends.
forwarding: Option<ForwardingConfig>
§max_sessions: Option<i64>
MaxSessions drives how many session channels can be open at the same time for a single network connection. 1 means unlimited. It is strongly recommended to configure this to a sane value, e.g. 10.
shell: Option<SecurityShellConfig>
§signal: Option<SecuritySignalConfig>
§subsystem: Option<SubsystemConfig>
§tty: Option<SecurityTtyConfig>
Implementations§
Source§impl SecurityConfig
impl SecurityConfig
pub fn new() -> SecurityConfig
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SecurityConfig
impl Debug for SecurityConfig
Source§impl<'de> Deserialize<'de> for SecurityConfig
impl<'de> Deserialize<'de> for SecurityConfig
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>,
Source§impl FromStr for SecurityConfig
Converts Query Parameters representation (style=form, explode=false) to a SecurityConfig value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for SecurityConfig
Converts Query Parameters representation (style=form, explode=false) to a SecurityConfig value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for SecurityConfig
impl PartialEq for SecurityConfig
Source§impl Serialize for SecurityConfig
impl Serialize for SecurityConfig
Source§impl ToString for SecurityConfig
Converts the SecurityConfig value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for SecurityConfig
Converts the SecurityConfig value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer