pub struct ResourceRule {
pub verbs: Vec<String>,
pub api_groups: Vec<String>,
pub resources: Vec<String>,
pub resource_names: Vec<String>,
}Expand description
ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn’t significant, may contain duplicates, and possibly be incomplete.
Fields§
§verbs: Vec<String>Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. “*” means all. +listType=atomic
api_groups: Vec<String>APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. “*” means all. +optional +listType=atomic
resources: Vec<String>Resources is a list of resources this rule applies to. “” means all in the specified apiGroups. “/foo” represents the subresource ‘foo’ for all resources in the specified apiGroups. +optional +listType=atomic
resource_names: Vec<String>ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. “*” means all. +optional +listType=atomic
Trait Implementations§
Source§impl Clone for ResourceRule
impl Clone for ResourceRule
Source§fn clone(&self) -> ResourceRule
fn clone(&self) -> ResourceRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceRule
impl Debug for ResourceRule
Source§impl Default for ResourceRule
impl Default for ResourceRule
Source§impl Hash for ResourceRule
impl Hash for ResourceRule
Source§impl Message for ResourceRule
impl Message for ResourceRule
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.