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