pub struct ServeConfig {Show 67 fields
pub kind: Option<String>,
pub target_id: Option<String>,
pub conf_path: Option<String>,
pub app_dir: Option<String>,
pub build_dir: Option<String>,
pub build_dir_from_conf: bool,
pub clean: bool,
pub state_dir: Option<String>,
pub state_dir_from_conf: bool,
pub state_path: Option<String>,
pub state_path_from_conf: bool,
pub base_path: Option<String>,
pub base_path_from_conf: bool,
pub log_path: Option<String>,
pub log_path_from_conf: bool,
pub log_level: Option<String>,
pub log_level_from_conf: bool,
pub trusted_proxy_cidrs: Option<String>,
pub trusted_proxy_cidrs_from_conf: bool,
pub redis_enabled: bool,
pub redis_enabled_from_conf: bool,
pub redis_host: Option<String>,
pub redis_host_from_conf: bool,
pub redis_port: Option<String>,
pub redis_port_from_conf: bool,
pub redis_auth_user: Option<String>,
pub redis_auth_user_from_conf: bool,
pub redis_auth_token_env: Option<String>,
pub redis_auth_token_env_from_conf: bool,
pub redis_db_index: Option<String>,
pub redis_db_index_from_conf: bool,
pub redis_connect_timeout_ms: Option<String>,
pub redis_connect_timeout_ms_from_conf: bool,
pub redis_read_timeout_ms: Option<String>,
pub redis_read_timeout_ms_from_conf: bool,
pub redis_cache_prefix: Option<String>,
pub redis_cache_prefix_from_conf: bool,
pub redis_backoff_seconds: Option<String>,
pub redis_backoff_seconds_from_conf: bool,
pub redis_backoff_max_seconds: Option<String>,
pub redis_backoff_max_seconds_from_conf: bool,
pub redis_tls_mode: Option<String>,
pub redis_tls_mode_from_conf: bool,
pub redis_tls_root_cert: Option<String>,
pub redis_tls_root_cert_from_conf: bool,
pub redis_tls_cert: Option<String>,
pub redis_tls_cert_from_conf: bool,
pub redis_tls_key: Option<String>,
pub redis_tls_key_from_conf: bool,
pub redis_require_peer_name_match: bool,
pub redis_require_peer_name_match_from_conf: bool,
pub redis_cache_sessions_enabled: bool,
pub redis_cache_sessions_enabled_from_conf: bool,
pub redis_cache_template_source_enabled: bool,
pub redis_cache_template_source_enabled_from_conf: bool,
pub redis_cache_route_match_enabled: bool,
pub redis_cache_route_match_enabled_from_conf: bool,
pub redis_cache_config_allowlist_enabled: bool,
pub redis_cache_config_allowlist_enabled_from_conf: bool,
pub socket_path: Option<String>,
pub socket_path_from_conf: bool,
pub host: Option<String>,
pub host_from_conf: bool,
pub port: Option<String>,
pub port_from_conf: bool,
pub root: Option<String>,
pub seed_state: bool,
}Expand description
Parsed top-level runtime launch configuration.
§Fields
kind: Stored field onServeConfig.target_id: Stored field onServeConfig.conf_path: Stored field onServeConfig.app_dir: Stored field onServeConfig.build_dir: Stored field onServeConfig.build_dir_from_conf: Stored field onServeConfig.clean: Stored field onServeConfig.state_dir: Stored field onServeConfig.state_dir_from_conf: Stored field onServeConfig.state_path: Stored field onServeConfig.state_path_from_conf: Stored field onServeConfig.base_path: Stored field onServeConfig.base_path_from_conf: Stored field onServeConfig.log_path: Stored field onServeConfig.log_path_from_conf: Stored field onServeConfig.log_level: Stored field onServeConfig.log_level_from_conf: Stored field onServeConfig.trusted_proxy_cidrs: Stored field onServeConfig.trusted_proxy_cidrs_from_conf: Stored field onServeConfig.redis_enabled: Stored field onServeConfig.redis_enabled_from_conf: Stored field onServeConfig.redis_host: Stored field onServeConfig.redis_host_from_conf: Stored field onServeConfig.redis_port: Stored field onServeConfig.redis_port_from_conf: Stored field onServeConfig.redis_auth_user: Stored field onServeConfig.redis_auth_user_from_conf: Stored field onServeConfig.redis_auth_token_env: Stored field onServeConfig.redis_auth_token_env_from_conf: Stored field onServeConfig.redis_db_index: Stored field onServeConfig.redis_db_index_from_conf: Stored field onServeConfig.redis_connect_timeout_ms: Stored field onServeConfig.redis_connect_timeout_ms_from_conf: Stored field onServeConfig.redis_read_timeout_ms: Stored field onServeConfig.redis_read_timeout_ms_from_conf: Stored field onServeConfig.redis_cache_prefix: Stored field onServeConfig.redis_cache_prefix_from_conf: Stored field onServeConfig.redis_backoff_seconds: Stored field onServeConfig.redis_backoff_seconds_from_conf: Stored field onServeConfig.redis_backoff_max_seconds: Stored field onServeConfig.redis_backoff_max_seconds_from_conf: Stored field onServeConfig.redis_tls_mode: Stored field onServeConfig.redis_tls_mode_from_conf: Stored field onServeConfig.redis_tls_root_cert: Stored field onServeConfig.redis_tls_root_cert_from_conf: Stored field onServeConfig.redis_tls_cert: Stored field onServeConfig.redis_tls_cert_from_conf: Stored field onServeConfig.redis_tls_key: Stored field onServeConfig.redis_tls_key_from_conf: Stored field onServeConfig.redis_require_peer_name_match: Stored field onServeConfig.redis_require_peer_name_match_from_conf: Stored field onServeConfig.redis_cache_sessions_enabled: Stored field onServeConfig.redis_cache_sessions_enabled_from_conf: Stored field onServeConfig.redis_cache_template_source_enabled: Stored field onServeConfig.redis_cache_template_source_enabled_from_conf: Stored field onServeConfig.redis_cache_route_match_enabled: Stored field onServeConfig.redis_cache_route_match_enabled_from_conf: Stored field onServeConfig.redis_cache_config_allowlist_enabled: Stored field onServeConfig.redis_cache_config_allowlist_enabled_from_conf: Stored field onServeConfig.socket_path: Stored field onServeConfig.socket_path_from_conf: Stored field onServeConfig.host: Stored field onServeConfig.host_from_conf: Stored field onServeConfig.port: Stored field onServeConfig.port_from_conf: Stored field onServeConfig.root: Stored field onServeConfig.seed_state: Stored field onServeConfig.
§Examples
ⓘ
let _ = std::mem::size_of::<pharos_runtime_core::config::ServeConfig>();§Related
crate::configfor constructors, helpers, and neighboring runtime types.
Fields§
§kind: Option<String>§target_id: Option<String>§conf_path: Option<String>§app_dir: Option<String>§build_dir: Option<String>§build_dir_from_conf: bool§clean: bool§state_dir: Option<String>§state_dir_from_conf: bool§state_path: Option<String>§state_path_from_conf: bool§base_path: Option<String>§base_path_from_conf: bool§log_path: Option<String>§log_path_from_conf: bool§log_level: Option<String>§log_level_from_conf: bool§trusted_proxy_cidrs: Option<String>§trusted_proxy_cidrs_from_conf: bool§redis_enabled: bool§redis_enabled_from_conf: bool§redis_host: Option<String>§redis_host_from_conf: bool§redis_port: Option<String>§redis_port_from_conf: bool§redis_auth_user: Option<String>§redis_auth_user_from_conf: bool§redis_auth_token_env: Option<String>§redis_auth_token_env_from_conf: bool§redis_db_index: Option<String>§redis_db_index_from_conf: bool§redis_connect_timeout_ms: Option<String>§redis_connect_timeout_ms_from_conf: bool§redis_read_timeout_ms: Option<String>§redis_read_timeout_ms_from_conf: bool§redis_cache_prefix: Option<String>§redis_cache_prefix_from_conf: bool§redis_backoff_seconds: Option<String>§redis_backoff_seconds_from_conf: bool§redis_backoff_max_seconds: Option<String>§redis_backoff_max_seconds_from_conf: bool§redis_tls_mode: Option<String>§redis_tls_mode_from_conf: bool§redis_tls_root_cert: Option<String>§redis_tls_root_cert_from_conf: bool§redis_tls_cert: Option<String>§redis_tls_cert_from_conf: bool§redis_tls_key: Option<String>§redis_tls_key_from_conf: bool§redis_require_peer_name_match: bool§redis_require_peer_name_match_from_conf: bool§redis_cache_sessions_enabled: bool§redis_cache_sessions_enabled_from_conf: bool§redis_cache_template_source_enabled: bool§redis_cache_template_source_enabled_from_conf: bool§redis_cache_route_match_enabled: bool§redis_cache_route_match_enabled_from_conf: bool§redis_cache_config_allowlist_enabled: bool§redis_cache_config_allowlist_enabled_from_conf: bool§socket_path: Option<String>§socket_path_from_conf: bool§host: Option<String>§host_from_conf: bool§port: Option<String>§port_from_conf: bool§root: Option<String>§seed_state: boolTrait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Source§fn clone(&self) -> ServeConfig
fn clone(&self) -> ServeConfig
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 ServeConfig
impl Debug for ServeConfig
Source§impl Default for ServeConfig
impl Default for ServeConfig
Source§fn default() -> ServeConfig
fn default() -> ServeConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServeConfig
impl PartialEq for ServeConfig
Source§fn eq(&self, other: &ServeConfig) -> bool
fn eq(&self, other: &ServeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ServeConfig
impl StructuralPartialEq for ServeConfig
Auto Trait Implementations§
impl Freeze for ServeConfig
impl RefUnwindSafe for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
impl UnwindSafe for ServeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.