#[derive(
    Clone,
    Default,
    PartialEq,
    serde::Deserialize,
    serde::Serialize,
    std::fmt::Debug
)]
#[serde(rename_all = "camelCase")]
pub struct NodeConfigStatusAc {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub active: <Option<
        ::k8s_openapi::api::core::v1::NodeConfigSource,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub assigned: <Option<
        ::k8s_openapi::api::core::v1::NodeConfigSource,
    > as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub error: <Option<std::string::String> as crate::Optionable>::Optioned,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub last_known_good: <Option<
        ::k8s_openapi::api::core::v1::NodeConfigSource,
    > as crate::Optionable>::Optioned,
}
#[automatically_derived]
impl crate::Optionable for ::k8s_openapi::api::core::v1::NodeConfigStatus {
    type Optioned = NodeConfigStatusAc;
}
#[automatically_derived]
impl crate::Optionable for NodeConfigStatusAc {
    type Optioned = NodeConfigStatusAc;
}
#[automatically_derived]
#[cfg(feature = "k8s_openapi_convert")]
impl crate::OptionableConvert for ::k8s_openapi::api::core::v1::NodeConfigStatus {
    fn into_optioned(self) -> NodeConfigStatusAc {
        NodeConfigStatusAc {
            active: crate::OptionableConvert::into_optioned(self.active),
            assigned: crate::OptionableConvert::into_optioned(self.assigned),
            error: crate::OptionableConvert::into_optioned(self.error),
            last_known_good: crate::OptionableConvert::into_optioned(
                self.last_known_good,
            ),
        }
    }
    fn try_from_optioned(value: NodeConfigStatusAc) -> Result<Self, crate::Error> {
        Ok(Self {
            active: crate::OptionableConvert::try_from_optioned(value.active)?,
            assigned: crate::OptionableConvert::try_from_optioned(value.assigned)?,
            error: crate::OptionableConvert::try_from_optioned(value.error)?,
            last_known_good: crate::OptionableConvert::try_from_optioned(
                value.last_known_good,
            )?,
        })
    }
    fn merge(&mut self, other: NodeConfigStatusAc) -> Result<(), crate::Error> {
        crate::OptionableConvert::merge(&mut self.active, other.active)?;
        crate::OptionableConvert::merge(&mut self.assigned, other.assigned)?;
        crate::OptionableConvert::merge(&mut self.error, other.error)?;
        crate::OptionableConvert::merge(
            &mut self.last_known_good,
            other.last_known_good,
        )?;
        Ok(())
    }
}
#[automatically_derived]
#[cfg(feature = "k8s_openapi_convert")]
impl crate::OptionedConvert<::k8s_openapi::api::core::v1::NodeConfigStatus>
for NodeConfigStatusAc {
    fn from_optionable(value: ::k8s_openapi::api::core::v1::NodeConfigStatus) -> Self {
        crate::OptionableConvert::into_optioned(value)
    }
    fn try_into_optionable(
        self,
    ) -> Result<::k8s_openapi::api::core::v1::NodeConfigStatus, crate::Error> {
        crate::OptionableConvert::try_from_optioned(self)
    }
    fn merge_into(
        self,
        other: &mut ::k8s_openapi::api::core::v1::NodeConfigStatus,
    ) -> Result<(), crate::Error> {
        crate::OptionableConvert::merge(other, self)
    }
}
