Struct sozu_command_lib::config::FileAppConfig [−][src]
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: LoadBalancingAlgorithms,
pub answer_503: Option<String>,
pub load_metric: Option<LoadMetric>,
}Fields
frontends: Vec<FileAppFrontendConfig>backends: Vec<BackendConfig>protocol: FileAppProtocolConfigsticky_session: Option<bool>https_redirect: Option<bool>send_proxy: Option<bool>load_balancing: LoadBalancingAlgorithmsanswer_503: Option<String>load_metric: Option<LoadMetric>Implementations
pub fn to_app_config(
self,
app_id: &str,
expect_proxy: &HashSet<SocketAddr>
) -> Result<AppConfig, String>Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for FileAppConfigimpl Send for FileAppConfigimpl Sync for FileAppConfigimpl Unpin for FileAppConfigimpl UnwindSafe for FileAppConfigBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self