pub struct IoK8sApiCoreV1LifecycleHandler {
pub exec: Option<IoK8sApiCoreV1ExecAction>,
pub http_get: Option<IoK8sApiCoreV1HttpGetAction>,
pub tcp_socket: Option<IoK8sApiCoreV1TcpSocketAction>,
}
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<IoK8sApiCoreV1ExecAction>
Exec specifies the action to take.
http_get: Option<IoK8sApiCoreV1HttpGetAction>
HTTPGet specifies the http request to perform.
tcp_socket: Option<IoK8sApiCoreV1TcpSocketAction>
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 IoK8sApiCoreV1LifecycleHandler
impl Clone for IoK8sApiCoreV1LifecycleHandler
Source§fn clone(&self) -> IoK8sApiCoreV1LifecycleHandler
fn clone(&self) -> IoK8sApiCoreV1LifecycleHandler
Returns a duplicate 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<'de> Deserialize<'de> for IoK8sApiCoreV1LifecycleHandler
impl<'de> Deserialize<'de> for IoK8sApiCoreV1LifecycleHandler
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 From<&IoK8sApiCoreV1LifecycleHandler> for IoK8sApiCoreV1LifecycleHandler
impl From<&IoK8sApiCoreV1LifecycleHandler> for IoK8sApiCoreV1LifecycleHandler
Source§fn from(value: &IoK8sApiCoreV1LifecycleHandler) -> Self
fn from(value: &IoK8sApiCoreV1LifecycleHandler) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1LifecycleHandler
impl RefUnwindSafe for IoK8sApiCoreV1LifecycleHandler
impl Send for IoK8sApiCoreV1LifecycleHandler
impl Sync for IoK8sApiCoreV1LifecycleHandler
impl Unpin for IoK8sApiCoreV1LifecycleHandler
impl UnwindSafe for IoK8sApiCoreV1LifecycleHandler
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