pub struct AccessReview {
pub group: Option<String>,
pub name: Option<String>,
pub ns: Option<String>,
pub resource: Option<String>,
pub subresource: Option<String>,
pub verb: Option<String>,
pub version: Option<String>,
}Expand description
Conveys information about a Kubernetes access review (such as one returned by a kubectl auth can-i command) that was involved in a finding.
This type is not used in any activity, and only used as part of another schema.
Fields§
§group: Option<String>The API group of the resource. “*” means all.
name: Option<String>The name of the resource being requested. Empty means all.
ns: Option<String>Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by “” (empty).
resource: Option<String>The optional resource type requested. “*” means all.
subresource: Option<String>The optional subresource type.
verb: Option<String>A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. “*” means all.
version: Option<String>The API version of the resource. “*” means all.
Trait Implementations§
Source§impl Clone for AccessReview
impl Clone for AccessReview
Source§fn clone(&self) -> AccessReview
fn clone(&self) -> AccessReview
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 AccessReview
impl Debug for AccessReview
Source§impl Default for AccessReview
impl Default for AccessReview
Source§fn default() -> AccessReview
fn default() -> AccessReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessReview
impl<'de> Deserialize<'de> for AccessReview
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 Serialize for AccessReview
impl Serialize for AccessReview
impl Part for AccessReview
Auto Trait Implementations§
impl Freeze for AccessReview
impl RefUnwindSafe for AccessReview
impl Send for AccessReview
impl Sync for AccessReview
impl Unpin for AccessReview
impl UnwindSafe for AccessReview
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