Struct sozu_command_lib::config::HttpClusterConfig
source · pub struct HttpClusterConfig {
pub cluster_id: String,
pub frontends: Vec<HttpFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub sticky_session: bool,
pub https_redirect: bool,
pub load_balancing: LoadBalancingAlgorithms,
pub load_metric: Option<LoadMetric>,
pub answer_503: Option<String>,
}
Fields§
§cluster_id: String
§frontends: Vec<HttpFrontendConfig>
§backends: Vec<BackendConfig>
§sticky_session: bool
§https_redirect: bool
§load_balancing: LoadBalancingAlgorithms
§load_metric: Option<LoadMetric>
§answer_503: Option<String>
Implementations§
source§impl HttpClusterConfig
impl HttpClusterConfig
pub fn generate_requests(&self) -> Result<Vec<Request>, ConfigError>
Trait Implementations§
source§impl Clone for HttpClusterConfig
impl Clone for HttpClusterConfig
source§fn clone(&self) -> HttpClusterConfig
fn clone(&self) -> HttpClusterConfig
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 HttpClusterConfig
impl Debug for HttpClusterConfig
source§impl<'de> Deserialize<'de> for HttpClusterConfig
impl<'de> Deserialize<'de> for HttpClusterConfig
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 HttpClusterConfig
impl Hash for HttpClusterConfig
source§impl PartialEq for HttpClusterConfig
impl PartialEq for HttpClusterConfig
source§fn eq(&self, other: &HttpClusterConfig) -> bool
fn eq(&self, other: &HttpClusterConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HttpClusterConfig
impl Serialize for HttpClusterConfig
impl Eq for HttpClusterConfig
impl StructuralPartialEq for HttpClusterConfig
Auto Trait Implementations§
impl Freeze for HttpClusterConfig
impl RefUnwindSafe for HttpClusterConfig
impl Send for HttpClusterConfig
impl Sync for HttpClusterConfig
impl Unpin for HttpClusterConfig
impl UnwindSafe for HttpClusterConfig
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.