pub struct Role {
pub metadata: ObjectMeta,
pub rules: Option<Vec<PolicyRule>>,
}
Expand description
Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.
Fields§
§metadata: ObjectMeta
Standard object’s metadata.
rules: Option<Vec<PolicyRule>>
Rules holds all the PolicyRules for this Role
Trait Implementations§
source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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 ListableResource for Role
impl ListableResource for Role
source§impl PartialEq for Role
impl PartialEq for Role
source§impl Resource for Role
impl Resource for Role
source§const API_VERSION: &'static str = "rbac.authorization.k8s.io/v1"
const API_VERSION: &'static str = "rbac.authorization.k8s.io/v1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moresource§const GROUP: &'static str = "rbac.authorization.k8s.io"
const GROUP: &'static str = "rbac.authorization.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
source§const URL_PATH_SEGMENT: &'static str = "roles"
const URL_PATH_SEGMENT: &'static str = "roles"
The URL path segment used to construct URLs related to this resource. Read more
§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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