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