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>§http_get: Option<HttpGetAction>§tcp_socket: Option<TcpSocketAction>Implementations§
Source§impl LifecycleHandler
impl LifecycleHandler
pub fn new() -> LifecycleHandler
Trait Implementations§
Source§impl Clone for LifecycleHandler
impl Clone for LifecycleHandler
Source§fn clone(&self) -> LifecycleHandler
fn clone(&self) -> LifecycleHandler
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 Debug for LifecycleHandler
impl Debug for LifecycleHandler
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 FromStr for LifecycleHandler
Converts Query Parameters representation (style=form, explode=false) to a LifecycleHandler value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for LifecycleHandler
Converts Query Parameters representation (style=form, explode=false) to a LifecycleHandler value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for LifecycleHandler
impl PartialEq for LifecycleHandler
Source§impl Serialize for LifecycleHandler
impl Serialize for LifecycleHandler
Source§impl ToString for LifecycleHandler
Converts the LifecycleHandler value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for LifecycleHandler
Converts the LifecycleHandler value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for LifecycleHandler
impl Validate for LifecycleHandler
Source§impl<'v_a> ValidateArgs<'v_a> for LifecycleHandler
impl<'v_a> ValidateArgs<'v_a> for LifecycleHandler
impl StructuralPartialEq for LifecycleHandler
Auto Trait Implementations§
impl Freeze for LifecycleHandler
impl RefUnwindSafe for LifecycleHandler
impl Send for LifecycleHandler
impl Sync for LifecycleHandler
impl Unpin for LifecycleHandler
impl UnwindSafe for LifecycleHandler
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