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