#[derive(
    Clone,
    Default,
    PartialEq,
    serde::Deserialize,
    serde::Serialize,
    std::fmt::Debug
)]
#[serde(rename_all = "camelCase")]
pub struct SleepActionAc {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub seconds: Option<i64>,
}
#[automatically_derived]
impl crate::Optionable for ::k8s_openapi::api::core::v1::SleepAction {
    type Optioned = SleepActionAc;
}
#[automatically_derived]
impl crate::Optionable for SleepActionAc {
    type Optioned = SleepActionAc;
}
#[automatically_derived]
#[cfg(feature = "k8s_openapi_convert")]
impl crate::OptionableConvert for ::k8s_openapi::api::core::v1::SleepAction {
    fn into_optioned(self) -> SleepActionAc {
        SleepActionAc {
            seconds: Some(self.seconds),
        }
    }
    fn try_from_optioned(value: SleepActionAc) -> Result<Self, crate::Error> {
        Ok(Self {
            seconds: value
                .seconds
                .ok_or(crate::Error {
                    missing_field: "seconds",
                })?,
        })
    }
    fn merge(&mut self, other: SleepActionAc) -> Result<(), crate::Error> {
        if let Some(other_value) = other.seconds {
            self.seconds = other_value;
        }
        Ok(())
    }
}
