pub struct HealthCheck {
pub path: String,
pub port: u64,
pub protocol: Option<HealthCheckProtocol>,
}Expand description
HealthCheck
JSON schema
{
"examples": [
{
"path": "/",
"port": 0,
"protocol": "http"
}
],
"type": "object",
"properties": {
"path": {
"description": "The HTTP path for the health check\n",
"default": "/",
"type": "string"
},
"port": {
"description": "The TCP port for the health check\n",
"default": 7070,
"type": "integer",
"minimum": 0.0
},
"protocol": {
"description": "The protocol for for the health check (http or https)\n",
"type": "string",
"enum": [
"http",
"https"
]
}
}
}Fields§
§path: StringThe HTTP path for the health check
port: u64The TCP port for the health check
protocol: Option<HealthCheckProtocol>The protocol for for the health check (http or https)
Trait Implementations§
Source§impl Clone for HealthCheck
impl Clone for HealthCheck
Source§fn clone(&self) -> HealthCheck
fn clone(&self) -> HealthCheck
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 HealthCheck
impl Debug for HealthCheck
Source§impl<'de> Deserialize<'de> for HealthCheck
impl<'de> Deserialize<'de> for HealthCheck
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 Display for HealthCheck
impl Display for HealthCheck
Source§impl From<&HealthCheck> for HealthCheck
impl From<&HealthCheck> for HealthCheck
Source§fn from(value: &HealthCheck) -> Self
fn from(value: &HealthCheck) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HealthCheck
impl PartialEq for HealthCheck
Source§impl Serialize for HealthCheck
impl Serialize for HealthCheck
impl StructuralPartialEq for HealthCheck
Auto Trait Implementations§
impl Freeze for HealthCheck
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin for HealthCheck
impl UnwindSafe for HealthCheck
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more