Skip to main content

ServeConfig

Struct ServeConfig 

Source
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 on ServeConfig.
  • target_id: Stored field on ServeConfig.
  • conf_path: Stored field on ServeConfig.
  • app_dir: Stored field on ServeConfig.
  • build_dir: Stored field on ServeConfig.
  • build_dir_from_conf: Stored field on ServeConfig.
  • clean: Stored field on ServeConfig.
  • state_dir: Stored field on ServeConfig.
  • state_dir_from_conf: Stored field on ServeConfig.
  • state_path: Stored field on ServeConfig.
  • state_path_from_conf: Stored field on ServeConfig.
  • base_path: Stored field on ServeConfig.
  • base_path_from_conf: Stored field on ServeConfig.
  • log_path: Stored field on ServeConfig.
  • log_path_from_conf: Stored field on ServeConfig.
  • log_level: Stored field on ServeConfig.
  • log_level_from_conf: Stored field on ServeConfig.
  • trusted_proxy_cidrs: Stored field on ServeConfig.
  • trusted_proxy_cidrs_from_conf: Stored field on ServeConfig.
  • redis_enabled: Stored field on ServeConfig.
  • redis_enabled_from_conf: Stored field on ServeConfig.
  • redis_host: Stored field on ServeConfig.
  • redis_host_from_conf: Stored field on ServeConfig.
  • redis_port: Stored field on ServeConfig.
  • redis_port_from_conf: Stored field on ServeConfig.
  • redis_auth_user: Stored field on ServeConfig.
  • redis_auth_user_from_conf: Stored field on ServeConfig.
  • redis_auth_token_env: Stored field on ServeConfig.
  • redis_auth_token_env_from_conf: Stored field on ServeConfig.
  • redis_db_index: Stored field on ServeConfig.
  • redis_db_index_from_conf: Stored field on ServeConfig.
  • redis_connect_timeout_ms: Stored field on ServeConfig.
  • redis_connect_timeout_ms_from_conf: Stored field on ServeConfig.
  • redis_read_timeout_ms: Stored field on ServeConfig.
  • redis_read_timeout_ms_from_conf: Stored field on ServeConfig.
  • redis_cache_prefix: Stored field on ServeConfig.
  • redis_cache_prefix_from_conf: Stored field on ServeConfig.
  • redis_backoff_seconds: Stored field on ServeConfig.
  • redis_backoff_seconds_from_conf: Stored field on ServeConfig.
  • redis_backoff_max_seconds: Stored field on ServeConfig.
  • redis_backoff_max_seconds_from_conf: Stored field on ServeConfig.
  • redis_tls_mode: Stored field on ServeConfig.
  • redis_tls_mode_from_conf: Stored field on ServeConfig.
  • redis_tls_root_cert: Stored field on ServeConfig.
  • redis_tls_root_cert_from_conf: Stored field on ServeConfig.
  • redis_tls_cert: Stored field on ServeConfig.
  • redis_tls_cert_from_conf: Stored field on ServeConfig.
  • redis_tls_key: Stored field on ServeConfig.
  • redis_tls_key_from_conf: Stored field on ServeConfig.
  • redis_require_peer_name_match: Stored field on ServeConfig.
  • redis_require_peer_name_match_from_conf: Stored field on ServeConfig.
  • redis_cache_sessions_enabled: Stored field on ServeConfig.
  • redis_cache_sessions_enabled_from_conf: Stored field on ServeConfig.
  • redis_cache_template_source_enabled: Stored field on ServeConfig.
  • redis_cache_template_source_enabled_from_conf: Stored field on ServeConfig.
  • redis_cache_route_match_enabled: Stored field on ServeConfig.
  • redis_cache_route_match_enabled_from_conf: Stored field on ServeConfig.
  • redis_cache_config_allowlist_enabled: Stored field on ServeConfig.
  • redis_cache_config_allowlist_enabled_from_conf: Stored field on ServeConfig.
  • socket_path: Stored field on ServeConfig.
  • socket_path_from_conf: Stored field on ServeConfig.
  • host: Stored field on ServeConfig.
  • host_from_conf: Stored field on ServeConfig.
  • port: Stored field on ServeConfig.
  • port_from_conf: Stored field on ServeConfig.
  • root: Stored field on ServeConfig.
  • seed_state: Stored field on ServeConfig.

§Examples

ⓘ
let _ = std::mem::size_of::<pharos_runtime_core::config::ServeConfig>();
  • crate::config for 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: bool

Trait Implementations§

Source§

impl Clone for ServeConfig

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ServeConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ServeConfig

Source§

fn default() -> ServeConfig

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ServeConfig

Source§

fn eq(&self, other: &ServeConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ServeConfig

Source§

impl StructuralPartialEq for ServeConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.