#[non_exhaustive]pub struct RBACBindingConfig {
pub enable_insecure_binding_system_unauthenticated: Option<bool>,
pub enable_insecure_binding_system_authenticated: Option<bool>,
}Expand description
RBACBindingConfig allows user to restrict ClusterRoleBindings an RoleBindings that can be created.
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.enable_insecure_binding_system_unauthenticated: Option<bool>Setting this to true will allow any ClusterRoleBinding and RoleBinding with subjets system:anonymous or system:unauthenticated.
enable_insecure_binding_system_authenticated: Option<bool>Setting this to true will allow any ClusterRoleBinding and RoleBinding with subjects system:authenticated.
Implementations§
Source§impl RBACBindingConfig
impl RBACBindingConfig
Sourcepub fn set_enable_insecure_binding_system_unauthenticated<T: Into<Option<bool>>>(
self,
v: T,
) -> Self
pub fn set_enable_insecure_binding_system_unauthenticated<T: Into<Option<bool>>>( self, v: T, ) -> Self
Sets the value of enable_insecure_binding_system_unauthenticated.
Sourcepub fn set_enable_insecure_binding_system_authenticated<T: Into<Option<bool>>>(
self,
v: T,
) -> Self
pub fn set_enable_insecure_binding_system_authenticated<T: Into<Option<bool>>>( self, v: T, ) -> Self
Sets the value of enable_insecure_binding_system_authenticated.
Trait Implementations§
Source§impl Clone for RBACBindingConfig
impl Clone for RBACBindingConfig
Source§fn clone(&self) -> RBACBindingConfig
fn clone(&self) -> RBACBindingConfig
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 RBACBindingConfig
impl Debug for RBACBindingConfig
Source§impl Default for RBACBindingConfig
impl Default for RBACBindingConfig
Source§fn default() -> RBACBindingConfig
fn default() -> RBACBindingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RBACBindingConfigwhere
RBACBindingConfig: Default,
impl<'de> Deserialize<'de> for RBACBindingConfigwhere
RBACBindingConfig: 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 RBACBindingConfig
impl Message for RBACBindingConfig
Source§impl PartialEq for RBACBindingConfig
impl PartialEq for RBACBindingConfig
Source§impl Serialize for RBACBindingConfig
impl Serialize for RBACBindingConfig
impl StructuralPartialEq for RBACBindingConfig
Auto Trait Implementations§
impl Freeze for RBACBindingConfig
impl RefUnwindSafe for RBACBindingConfig
impl Send for RBACBindingConfig
impl Sync for RBACBindingConfig
impl Unpin for RBACBindingConfig
impl UnwindSafe for RBACBindingConfig
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