Struct k8s_openapi::api::core::v1::LifecycleHandler
source · pub struct LifecycleHandler {
pub exec: Option<ExecAction>,
pub http_get: Option<HTTPGetAction>,
pub tcp_socket: Option<TCPSocketAction>,
}
Expand description
LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
Fields§
§exec: Option<ExecAction>
Exec specifies the action to take.
http_get: Option<HTTPGetAction>
HTTPGet specifies the http request to perform.
tcp_socket: Option<TCPSocketAction>
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
Trait Implementations§
source§impl Clone for LifecycleHandler
impl Clone for LifecycleHandler
source§fn clone(&self) -> LifecycleHandler
fn clone(&self) -> LifecycleHandler
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 LifecycleHandler
impl Debug for LifecycleHandler
source§impl DeepMerge for LifecycleHandler
impl DeepMerge for LifecycleHandler
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for LifecycleHandler
impl Default for LifecycleHandler
source§fn default() -> LifecycleHandler
fn default() -> LifecycleHandler
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LifecycleHandler
impl<'de> Deserialize<'de> for LifecycleHandler
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<LifecycleHandler> for LifecycleHandler
impl PartialEq<LifecycleHandler> for LifecycleHandler
source§fn eq(&self, other: &LifecycleHandler) -> bool
fn eq(&self, other: &LifecycleHandler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.