k8s_openapi_ext/get/
configmap.rs

1use super::*;
2
3pub trait ConfigMapGetExt {
4    fn myself(&self) -> &corev1::ConfigMap;
5
6    fn data(&self) -> Option<&BTreeMap<String, String>> {
7        self.myself().data.as_ref()
8    }
9
10    fn binary_data(&self) -> Option<&BTreeMap<String, ByteString>> {
11        self.myself().binary_data.as_ref()
12    }
13
14    fn immutable(&self) -> Option<bool> {
15        self.myself().immutable
16    }
17}
18
19impl ConfigMapGetExt for corev1::ConfigMap {
20    #[inline(always)]
21    fn myself(&self) -> &corev1::ConfigMap {
22        self
23    }
24}