Struct kanidmd_core::config::Configuration
source · pub struct Configuration {Show 16 fields
pub address: String,
pub ldapaddress: Option<String>,
pub threads: usize,
pub db_path: String,
pub db_fs_type: Option<String>,
pub db_arc_size: Option<usize>,
pub maximum_request: usize,
pub secure_cookies: bool,
pub trust_x_forward_for: bool,
pub tls_config: Option<TlsConfiguration>,
pub integration_test_config: Option<Box<IntegrationTestConfig>>,
pub online_backup: Option<OnlineBackup>,
pub domain: String,
pub origin: String,
pub role: ServerRole,
pub output_mode: ConsoleOutputMode,
}
Fields§
§address: String
§ldapaddress: Option<String>
§threads: usize
§db_path: String
§db_fs_type: Option<String>
§db_arc_size: Option<usize>
§maximum_request: usize
§trust_x_forward_for: bool
§tls_config: Option<TlsConfiguration>
§integration_test_config: Option<Box<IntegrationTestConfig>>
§online_backup: Option<OnlineBackup>
§domain: String
§origin: String
§role: ServerRole
§output_mode: ConsoleOutputMode
Implementations§
source§impl Configuration
impl Configuration
pub fn new() -> Self
pub fn update_online_backup(&mut self, cfg: &Option<OnlineBackup>)
pub fn update_config_for_server_mode(&mut self, sconfig: &ServerConfig)
pub fn update_trust_x_forward_for(&mut self, t: Option<bool>)
pub fn update_db_path(&mut self, p: &str)
pub fn update_db_arc_size(&mut self, v: Option<usize>)
pub fn update_db_fs_type(&mut self, p: &Option<String>)
pub fn update_bind(&mut self, b: &Option<String>)
pub fn update_ldapbind(&mut self, l: &Option<String>)
pub fn update_origin(&mut self, o: &str)
pub fn update_domain(&mut self, d: &str)
pub fn update_role(&mut self, r: ServerRole)
sourcepub fn update_output_mode(&mut self, om: ConsoleOutputMode)
pub fn update_output_mode(&mut self, om: ConsoleOutputMode)
Sets the output mode for writing to the console
pub fn update_tls(&mut self, chain: &Option<String>, key: &Option<String>)
Trait Implementations§
source§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
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