Struct hcloud::models::load_balancer_service_health_check_http::LoadBalancerServiceHealthCheckHttp
source · pub struct LoadBalancerServiceHealthCheckHttp {
pub domain: Option<String>,
pub path: String,
pub response: Option<String>,
pub status_codes: Option<Vec<String>>,
pub tls: Option<bool>,
}
Expand description
LoadBalancerServiceHealthCheckHttp : Additional configuration for protocol http
Fields§
§domain: Option<String>
Host header to send in the HTTP request. May not contain spaces, percent or backslash symbols. Can be null, in that case no host header is sent.
path: String
HTTP path to use for health checks. May not contain literal spaces, use percent-encoding instead.
response: Option<String>
String that must be contained in HTTP response in order to pass the health check
status_codes: Option<Vec<String>>
List of returned HTTP status codes in order to pass the health check. Supports the wildcards ?
for exactly one character and *
for multiple ones.
tls: Option<bool>
Use HTTPS for health check
Implementations§
Trait Implementations§
source§impl Clone for LoadBalancerServiceHealthCheckHttp
impl Clone for LoadBalancerServiceHealthCheckHttp
source§fn clone(&self) -> LoadBalancerServiceHealthCheckHttp
fn clone(&self) -> LoadBalancerServiceHealthCheckHttp
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 Default for LoadBalancerServiceHealthCheckHttp
impl Default for LoadBalancerServiceHealthCheckHttp
source§fn default() -> LoadBalancerServiceHealthCheckHttp
fn default() -> LoadBalancerServiceHealthCheckHttp
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LoadBalancerServiceHealthCheckHttp
impl<'de> Deserialize<'de> for LoadBalancerServiceHealthCheckHttp
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 PartialEq for LoadBalancerServiceHealthCheckHttp
impl PartialEq for LoadBalancerServiceHealthCheckHttp
source§fn eq(&self, other: &LoadBalancerServiceHealthCheckHttp) -> bool
fn eq(&self, other: &LoadBalancerServiceHealthCheckHttp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoadBalancerServiceHealthCheckHttp
Auto Trait Implementations§
impl RefUnwindSafe for LoadBalancerServiceHealthCheckHttp
impl Send for LoadBalancerServiceHealthCheckHttp
impl Sync for LoadBalancerServiceHealthCheckHttp
impl Unpin for LoadBalancerServiceHealthCheckHttp
impl UnwindSafe for LoadBalancerServiceHealthCheckHttp
Blanket Implementations§
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