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<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
§impl<T> Conv for T
impl<T> Conv for T
§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.§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.