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: RulePositionImplementations§
Source§impl FileClusterFrontendConfig
 
impl FileClusterFrontendConfig
pub fn to_tcp_front(&self) -> Result<TcpFrontendConfig, ConfigError>
pub fn to_http_front( &self, _cluster_id: &str, ) -> Result<HttpFrontendConfig, ConfigError>
Trait Implementations§
Source§impl Clone for FileClusterFrontendConfig
 
impl Clone for FileClusterFrontendConfig
Source§fn clone(&self) -> FileClusterFrontendConfig
 
fn clone(&self) -> FileClusterFrontendConfig
Returns a duplicate 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
Source§impl Hash for FileClusterFrontendConfig
 
impl Hash for FileClusterFrontendConfig
impl Eq for FileClusterFrontendConfig
impl StructuralPartialEq for FileClusterFrontendConfig
Auto Trait Implementations§
impl Freeze for FileClusterFrontendConfig
impl RefUnwindSafe for FileClusterFrontendConfig
impl Send for FileClusterFrontendConfig
impl Sync for FileClusterFrontendConfig
impl Unpin for FileClusterFrontendConfig
impl UnwindSafe for FileClusterFrontendConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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