#[derive(
    Clone,
    Default,
    PartialEq,
    serde::Deserialize,
    serde::Serialize,
    std::fmt::Debug
)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct PodStatusAc {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub conditions: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::PodCondition>,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub container_statuses: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::ContainerStatus>,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub ephemeral_container_statuses: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::ContainerStatus>,
    > as crate::Optionable>::Optioned,
    #[serde(rename = "hostIP")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub host_ip: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(rename = "hostIPs")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub host_ips: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::HostIP>,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub init_container_statuses: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::ContainerStatus>,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub message: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub nominated_node_name: <Option<
        std::string::String,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub phase: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(rename = "podIP")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub pod_ip: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(rename = "podIPs")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub pod_ips: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::PodIP>,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub qos_class: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub reason: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resize: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource_claim_statuses: <Option<
        std::vec::Vec<::k8s_openapi::api::core::v1::PodResourceClaimStatus>,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub start_time: <Option<
        ::k8s_openapi::apimachinery::pkg::apis::meta::v1::Time,
    > as crate::Optionable>::Optioned,
}
#[automatically_derived]
impl crate::Optionable for ::k8s_openapi::api::core::v1::PodStatus {
    type Optioned = PodStatusAc;
}
#[automatically_derived]
impl crate::Optionable for PodStatusAc {
    type Optioned = PodStatusAc;
}
#[automatically_derived]
#[cfg(feature = "k8s_openapi_convert")]
impl crate::OptionableConvert for ::k8s_openapi::api::core::v1::PodStatus {
    fn into_optioned(self) -> PodStatusAc {
        PodStatusAc {
            conditions: crate::OptionableConvert::into_optioned(self.conditions),
            container_statuses: crate::OptionableConvert::into_optioned(
                self.container_statuses,
            ),
            ephemeral_container_statuses: crate::OptionableConvert::into_optioned(
                self.ephemeral_container_statuses,
            ),
            host_ip: crate::OptionableConvert::into_optioned(self.host_ip),
            host_ips: crate::OptionableConvert::into_optioned(self.host_ips),
            init_container_statuses: crate::OptionableConvert::into_optioned(
                self.init_container_statuses,
            ),
            message: crate::OptionableConvert::into_optioned(self.message),
            nominated_node_name: crate::OptionableConvert::into_optioned(
                self.nominated_node_name,
            ),
            phase: crate::OptionableConvert::into_optioned(self.phase),
            pod_ip: crate::OptionableConvert::into_optioned(self.pod_ip),
            pod_ips: crate::OptionableConvert::into_optioned(self.pod_ips),
            qos_class: crate::OptionableConvert::into_optioned(self.qos_class),
            reason: crate::OptionableConvert::into_optioned(self.reason),
            resize: crate::OptionableConvert::into_optioned(self.resize),
            resource_claim_statuses: crate::OptionableConvert::into_optioned(
                self.resource_claim_statuses,
            ),
            start_time: crate::OptionableConvert::into_optioned(self.start_time),
        }
    }
    fn try_from_optioned(value: PodStatusAc) -> Result<Self, crate::Error> {
        Ok(Self {
            conditions: crate::OptionableConvert::try_from_optioned(value.conditions)?,
            container_statuses: crate::OptionableConvert::try_from_optioned(
                value.container_statuses,
            )?,
            ephemeral_container_statuses: crate::OptionableConvert::try_from_optioned(
                value.ephemeral_container_statuses,
            )?,
            host_ip: crate::OptionableConvert::try_from_optioned(value.host_ip)?,
            host_ips: crate::OptionableConvert::try_from_optioned(value.host_ips)?,
            init_container_statuses: crate::OptionableConvert::try_from_optioned(
                value.init_container_statuses,
            )?,
            message: crate::OptionableConvert::try_from_optioned(value.message)?,
            nominated_node_name: crate::OptionableConvert::try_from_optioned(
                value.nominated_node_name,
            )?,
            phase: crate::OptionableConvert::try_from_optioned(value.phase)?,
            pod_ip: crate::OptionableConvert::try_from_optioned(value.pod_ip)?,
            pod_ips: crate::OptionableConvert::try_from_optioned(value.pod_ips)?,
            qos_class: crate::OptionableConvert::try_from_optioned(value.qos_class)?,
            reason: crate::OptionableConvert::try_from_optioned(value.reason)?,
            resize: crate::OptionableConvert::try_from_optioned(value.resize)?,
            resource_claim_statuses: crate::OptionableConvert::try_from_optioned(
                value.resource_claim_statuses,
            )?,
            start_time: crate::OptionableConvert::try_from_optioned(value.start_time)?,
        })
    }
    fn merge(&mut self, other: PodStatusAc) -> Result<(), crate::Error> {
        crate::OptionableConvert::merge(&mut self.conditions, other.conditions)?;
        crate::OptionableConvert::merge(
            &mut self.container_statuses,
            other.container_statuses,
        )?;
        crate::OptionableConvert::merge(
            &mut self.ephemeral_container_statuses,
            other.ephemeral_container_statuses,
        )?;
        crate::OptionableConvert::merge(&mut self.host_ip, other.host_ip)?;
        crate::OptionableConvert::merge(&mut self.host_ips, other.host_ips)?;
        crate::OptionableConvert::merge(
            &mut self.init_container_statuses,
            other.init_container_statuses,
        )?;
        crate::OptionableConvert::merge(&mut self.message, other.message)?;
        crate::OptionableConvert::merge(
            &mut self.nominated_node_name,
            other.nominated_node_name,
        )?;
        crate::OptionableConvert::merge(&mut self.phase, other.phase)?;
        crate::OptionableConvert::merge(&mut self.pod_ip, other.pod_ip)?;
        crate::OptionableConvert::merge(&mut self.pod_ips, other.pod_ips)?;
        crate::OptionableConvert::merge(&mut self.qos_class, other.qos_class)?;
        crate::OptionableConvert::merge(&mut self.reason, other.reason)?;
        crate::OptionableConvert::merge(&mut self.resize, other.resize)?;
        crate::OptionableConvert::merge(
            &mut self.resource_claim_statuses,
            other.resource_claim_statuses,
        )?;
        crate::OptionableConvert::merge(&mut self.start_time, other.start_time)?;
        Ok(())
    }
}
#[automatically_derived]
#[cfg(feature = "k8s_openapi_convert")]
impl crate::OptionedConvert<::k8s_openapi::api::core::v1::PodStatus> for PodStatusAc {
    fn from_optionable(value: ::k8s_openapi::api::core::v1::PodStatus) -> Self {
        crate::OptionableConvert::into_optioned(value)
    }
    fn try_into_optionable(
        self,
    ) -> Result<::k8s_openapi::api::core::v1::PodStatus, crate::Error> {
        crate::OptionableConvert::try_from_optioned(self)
    }
    fn merge_into(
        self,
        other: &mut ::k8s_openapi::api::core::v1::PodStatus,
    ) -> Result<(), crate::Error> {
        crate::OptionableConvert::merge(other, self)
    }
}
