Struct sozu_command_lib::config::FileAppConfig
source · pub struct FileAppConfig {
pub frontends: Vec<FileAppFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub protocol: FileAppProtocolConfig,
pub sticky_session: Option<bool>,
pub https_redirect: Option<bool>,
pub send_proxy: Option<bool>,
pub load_balancing_policy: LoadBalancingAlgorithms,
pub answer_503: Option<String>,
}Fields§
§frontends: Vec<FileAppFrontendConfig>§backends: Vec<BackendConfig>§protocol: FileAppProtocolConfig§sticky_session: Option<bool>§https_redirect: Option<bool>§send_proxy: Option<bool>§load_balancing_policy: LoadBalancingAlgorithms§answer_503: Option<String>Implementations§
source§impl FileAppConfig
impl FileAppConfig
pub fn to_app_config(
self,
app_id: &str,
expect_proxy: &HashSet<SocketAddr>
) -> Result<AppConfig, String>
Trait Implementations§
source§impl Clone for FileAppConfig
impl Clone for FileAppConfig
source§fn clone(&self) -> FileAppConfig
fn clone(&self) -> FileAppConfig
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 FileAppConfig
impl Debug for FileAppConfig
source§impl<'de> Deserialize<'de> for FileAppConfig
impl<'de> Deserialize<'de> for FileAppConfig
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