#[non_exhaustive]pub struct Authorization {
pub admin_users: Option<ClusterUser>,
/* private fields */
}Expand description
RBAC policy that will be applied and managed by GEC.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.admin_users: Option<ClusterUser>Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.
Implementations§
Source§impl Authorization
impl Authorization
pub fn new() -> Self
Sourcepub fn set_admin_users<T>(self, v: T) -> Selfwhere
T: Into<ClusterUser>,
pub fn set_admin_users<T>(self, v: T) -> Selfwhere
T: Into<ClusterUser>,
Sets the value of admin_users.
Sourcepub fn set_or_clear_admin_users<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterUser>,
pub fn set_or_clear_admin_users<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterUser>,
Sets or clears the value of admin_users.
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Authorization
impl Debug for Authorization
Source§impl Default for Authorization
impl Default for Authorization
Source§fn default() -> Authorization
fn default() -> Authorization
Returns the “default value” for a type. Read more
Source§impl Message for Authorization
impl Message for Authorization
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more