pub struct Configuration {Show 18 fields
pub environment: String,
pub root_path: String,
pub network: Network,
pub logging: Logging,
pub certificate: Option<Certificate>,
pub compression: Option<Compression>,
pub command_control: Option<CommandControl>,
pub security: Option<Security>,
pub oidc: Option<OIDC>,
pub store: Option<Stores>,
pub authentication: Option<Authentication>,
pub content: Option<Content>,
pub proxy: Option<NetworkProxy>,
pub browser: Option<Browser>,
pub browser_automation: Option<BrowserAutomation>,
pub crawler: Option<Crawler>,
pub vpn: Option<VPN>,
pub connectors: Option<BTreeMap<String, Definition>>,
}
Fields§
§environment: String
§root_path: String
§network: Network
§logging: Logging
§certificate: Option<Certificate>
§compression: Option<Compression>
§command_control: Option<CommandControl>
§security: Option<Security>
§oidc: Option<OIDC>
§store: Option<Stores>
§authentication: Option<Authentication>
§content: Option<Content>
§proxy: Option<NetworkProxy>
§browser: Option<Browser>
§browser_automation: Option<BrowserAutomation>
§crawler: Option<Crawler>
§vpn: Option<VPN>
§connectors: Option<BTreeMap<String, Definition>>
Implementations§
Source§impl Configuration
impl Configuration
pub fn new() -> Self
pub fn environment(self) -> String
pub fn log_level(&self) -> Level
pub fn get_host(&self) -> String
pub fn url_address(&self) -> Url
pub fn socket_address(&self, port: Option<u16>, default_all: bool) -> SocketAddr
pub fn get_socket_address( host: String, port: u16, default_all: bool, ) -> SocketAddr
pub fn is_secure(&self) -> bool
pub fn all_insecure(&self) -> bool
pub fn insecure_port(&self) -> u16
pub fn insecure_force_secure(&self) -> bool
pub fn is_compression_gzip(&self) -> bool
pub fn is_compression_deflate(&self) -> bool
pub fn is_compression_brotli(&self) -> bool
pub fn get_cc_max_servers(&self) -> u8
pub fn get_cc_max_failures(&self) -> u8
pub fn is_monitor_enabled(&self) -> bool
pub fn is_pulse_check_enabled(&self) -> bool
pub fn get_monitor_cron(&self) -> String
pub fn get_hearbeat_cron(&self) -> String
pub fn get_csp(&self) -> CSPConfig
pub fn get_store_key_value_enabled(&self) -> bool
pub fn get_store_key_value_kind(&self) -> KeyValueKind
pub fn get_store_key_value_host(&self) -> String
pub fn get_store_key_value_port(&self) -> u16
pub fn get_store_key_value_pool_size(&self) -> u8
pub fn get_store_key_value_username(&self) -> Option<String>
pub fn get_store_key_value_password(&self) -> Option<String>
pub fn get_store_key_value_is_secure(&self) -> bool
pub fn get_store_key_value_db_identifier(&self) -> u8
pub fn get_store_key_value_default_limit(&self) -> u32
pub fn get_store_key_value_default_offset(&self) -> u32
pub fn get_store_queue_enabled(&self) -> bool
pub fn get_store_queue_kind(&self) -> QueueKind
pub fn get_store_queue_host(&self) -> String
pub fn get_store_queue_port(&self) -> u16
pub fn get_store_queue_pool_size(&self) -> u8
pub fn get_store_queue_username(&self) -> Option<String>
pub fn get_store_queue_password(&self) -> Option<String>
pub fn get_store_queue_is_secure(&self) -> bool
pub fn get_store_queue_db_identifier(&self) -> u8
pub fn get_store_queue_default_limit(&self) -> u32
pub fn get_store_queue_default_offset(&self) -> u32
pub fn get_store_relational_enabled(&self) -> bool
pub fn get_store_relational_kind(&self) -> RelationalKind
pub fn get_store_relational_host(&self) -> String
pub fn get_store_relational_port(&self) -> u16
pub fn get_store_relational_pool_size(&self) -> u8
pub fn get_store_relational_username(&self) -> Option<String>
pub fn get_store_relational_password(&self) -> Option<String>
pub fn get_store_relational_is_secure(&self) -> bool
pub fn get_store_relational_db_identifier(&self) -> String
pub fn get_store_relational_default_limit(&self) -> u32
pub fn get_store_relational_default_offset(&self) -> u32
pub fn get_authentication_app_id(&self) -> String
pub fn get_authentication_client_id(&self) -> String
pub fn get_authentication_client_secret(&self) -> String
pub fn get_authentication_client_key(&self) -> String
pub fn get_authentication_default_scope(&self) -> String
pub fn get_authentication_audience(&self) -> String
pub fn get_authentication_token_lifetime(&self) -> u32
pub fn get_authentication_scopes(&self) -> BTreeMap<String, String>
pub fn get_authentication_oidc_providers( &self, ) -> Vec<AuthenticationOIDCProvider>
pub fn get_authentication_oidc_redirect_uri(&self) -> Url
pub fn get_content_setup(&self) -> ContentSetup
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · 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 Configuration
impl Debug for Configuration
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
Auto Trait Implementations§
impl Freeze for Configuration
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
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