Trait k8s_openapi_ext::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§
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
Object Safety§
This trait is not object safe.