#[non_exhaustive]pub struct Authorization {
pub admin_users: Option<ClusterUser>,
}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: Into<Option<ClusterUser>>>(self, v: T) -> Self
pub fn set_admin_users<T: Into<Option<ClusterUser>>>(self, v: T) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for Authorizationwhere
Authorization: Default,
impl<'de> Deserialize<'de> for Authorizationwhere
Authorization: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Authorization
impl Message for Authorization
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
Source§impl Serialize for Authorization
impl Serialize 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