Trait ConfigMapExt

Source
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§

Source

fn new(name: impl ToString) -> Self

Creates new corev1::ConfigMap object with given name`

Source

fn immutable(self, yes: bool) -> Self

Initializes immutable field

Source

fn binary_data( self, data: impl IntoIterator<Item = (impl ToString, ByteString)>, ) -> Self

Initializes binary_data field

Source

fn data( self, data: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Initializes data field

Source

fn data_mut(&mut self) -> &mut BTreeMap<String, String>

Mutable access to data. Initializes data with empty BTreeMap if absent

Source

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.

Implementors§