k8s_openapi_ext

Trait RoleExt

Source
pub trait RoleExt: ResourceBuilder {
    // Required methods
    fn new(name: impl ToString) -> Self;
    fn rules(self, rules: impl IntoIterator<Item = PolicyRule>) -> Self;
}

Required Methods§

Source

fn new(name: impl ToString) -> Self

Source

fn rules(self, rules: impl IntoIterator<Item = PolicyRule>) -> Self

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§