pub struct FileClusterFrontendConfig {
pub address: SocketAddr,
pub hostname: Option<String>,
pub path: Option<String>,
pub path_type: Option<PathRuleType>,
pub method: Option<String>,
pub certificate: Option<String>,
pub key: Option<String>,
pub certificate_chain: Option<String>,
pub tls_versions: Vec<TlsVersion>,
pub position: RulePosition,
pub tags: Option<BTreeMap<String, String>>,
}
Fields§
§address: SocketAddr
§hostname: Option<String>
§path: Option<String>
creates a path routing rule where the request URL path has to match this
path_type: Option<PathRuleType>
declares whether the path rule is Prefix (default), Regex, or Equals
method: Option<String>
§certificate: Option<String>
§key: Option<String>
§certificate_chain: Option<String>
§tls_versions: Vec<TlsVersion>
§position: RulePosition
Implementations§
source§impl FileClusterFrontendConfig
impl FileClusterFrontendConfig
pub fn to_tcp_front(&self) -> Result<TcpFrontendConfig>
pub fn to_http_front(&self, _cluster_id: &str) -> Result<HttpFrontendConfig>
Trait Implementations§
source§impl Clone for FileClusterFrontendConfig
impl Clone for FileClusterFrontendConfig
source§fn clone(&self) -> FileClusterFrontendConfig
fn clone(&self) -> FileClusterFrontendConfig
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 FileClusterFrontendConfig
impl Debug for FileClusterFrontendConfig
source§impl<'de> Deserialize<'de> for FileClusterFrontendConfig
impl<'de> Deserialize<'de> for FileClusterFrontendConfig
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