pub trait ConfigMapExt: ResourceBuilder {
// Required methods
fn new(name: impl ToString) -> Self;
fn immutable(self, yes: bool) -> Self;
fn binary_data(
self,
data: impl IntoIterator<Item = (impl ToString, ByteString)>,
) -> Self;
fn data(
self,
data: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self;
fn data_mut(&mut self) -> &mut BTreeMap<String, String>;
fn binary_data_mut(&mut self) -> &mut BTreeMap<String, ByteString>;
}
Expand description
Extension trait for corev1::ConfigMap
.
Fluent builders and mutable accessors
Required Methods§
Sourcefn binary_data(
self,
data: impl IntoIterator<Item = (impl ToString, ByteString)>,
) -> Self
fn binary_data( self, data: impl IntoIterator<Item = (impl ToString, ByteString)>, ) -> Self
Initializes binary_data
field
Sourcefn data(
self,
data: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self
fn data( self, data: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
Initializes data
field
Sourcefn data_mut(&mut self) -> &mut BTreeMap<String, String>
fn data_mut(&mut self) -> &mut BTreeMap<String, String>
Mutable access to data
.
Initializes data
with empty BTreeMap
if absent
Sourcefn binary_data_mut(&mut self) -> &mut BTreeMap<String, ByteString>
fn binary_data_mut(&mut self) -> &mut BTreeMap<String, ByteString>
Mutable access to binary_data
.
Initializes binary_data
with empty BTreeMap
if absent
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.