Struct consul_rs::health::HealthCheckDefinition [−][src]
pub struct HealthCheckDefinition {}Show fields
pub HTTP: Option<String>, pub Header: Option<HashMap<String, Vec<String>>>, pub Method: Option<String>, pub Body: Option<String>, pub TLSServerName: Option<String>, pub TLSSkipVerify: Option<bool>, pub TCP: Option<String>, pub IntervalDuration: Option<Duration>, pub TimeoutDuration: Option<Duration>, pub DeregisterCriticalServiceAfterDuration: Option<Duration>, pub Interval: Option<Duration>, pub Timeout: Option<Duration>, pub DeregisterCriticalServiceAfter: Option<Duration>,
Expand description
HealthCheckDefinition is used to store the details about a health check’s execution.
Fields
HTTP: Option<String>
Header: Option<HashMap<String, Vec<String>>>
Method: Option<String>
Body: Option<String>
TLSServerName: Option<String>
TLSSkipVerify: Option<bool>
TCP: Option<String>
IntervalDuration: Option<Duration>
TimeoutDuration: Option<Duration>
DeregisterCriticalServiceAfterDuration: Option<Duration>
Interval: Option<Duration>
DEPRECATED in Consul 1.4.1. Use the above time.Duration fields instead.
Timeout: Option<Duration>
DeregisterCriticalServiceAfter: Option<Duration>
Trait Implementations
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for HealthCheckDefinition
impl Send for HealthCheckDefinition
impl Sync for HealthCheckDefinition
impl Unpin for HealthCheckDefinition
impl UnwindSafe for HealthCheckDefinition
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more