pub struct ClusterRoleScopeRestriction {
pub allow_escalation: bool,
pub namespaces: Vec<String>,
pub role_names: Vec<String>,
}
Expand description
ClusterRoleScopeRestriction describes restrictions on cluster role scopes
Fields§
§allow_escalation: bool
AllowEscalation indicates whether you can request roles and their escalating resources
namespaces: Vec<String>
Namespaces is the list of namespaces that can be referenced. * means any of them (including *)
role_names: Vec<String>
RoleNames is the list of cluster roles that can referenced. * means anything
Trait Implementations§
Source§impl Clone for ClusterRoleScopeRestriction
impl Clone for ClusterRoleScopeRestriction
Source§fn clone(&self) -> ClusterRoleScopeRestriction
fn clone(&self) -> ClusterRoleScopeRestriction
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 ClusterRoleScopeRestriction
impl Debug for ClusterRoleScopeRestriction
Source§impl Default for ClusterRoleScopeRestriction
impl Default for ClusterRoleScopeRestriction
Source§fn default() -> ClusterRoleScopeRestriction
fn default() -> ClusterRoleScopeRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterRoleScopeRestriction
impl<'de> Deserialize<'de> for ClusterRoleScopeRestriction
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
impl StructuralPartialEq for ClusterRoleScopeRestriction
Auto Trait Implementations§
impl Freeze for ClusterRoleScopeRestriction
impl RefUnwindSafe for ClusterRoleScopeRestriction
impl Send for ClusterRoleScopeRestriction
impl Sync for ClusterRoleScopeRestriction
impl Unpin for ClusterRoleScopeRestriction
impl UnwindSafe for ClusterRoleScopeRestriction
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