Trait SubjectExt

Source
pub trait SubjectExt: Sized {
    // Required methods
    fn with_kind(name: impl ToString, kind: impl ToString) -> Self;
    fn namespace(self, namespace: impl ToString) -> Self;

    // Provided methods
    fn user(name: impl ToString) -> Self { ... }
    fn group(name: impl ToString) -> Self { ... }
    fn service_account(account: &ServiceAccount) -> Self { ... }
}

Required Methods§

Source

fn with_kind(name: impl ToString, kind: impl ToString) -> Self

Source

fn namespace(self, namespace: impl ToString) -> Self

Provided Methods§

Source

fn user(name: impl ToString) -> Self

Source

fn group(name: impl ToString) -> Self

Source

fn service_account(account: &ServiceAccount) -> 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§