pub struct SelfSubjectRulesReview {
pub spec: SelfSubjectRulesReviewSpec,
pub status: Option<SubjectRulesReviewStatus>,
}
Expand description
SelfSubjectRulesReview is a resource you can create to determine which actions you can perform in a namespace
Fields§
§spec: SelfSubjectRulesReviewSpec
Spec adds information about how to conduct the check
status: Option<SubjectRulesReviewStatus>
Status is completed by the server to tell which permissions you have
Implementations§
Source§impl SelfSubjectRulesReview
impl SelfSubjectRulesReview
Sourcepub fn create_namespaced_self_subject_rules_review(
namespace: &str,
body: &SelfSubjectRulesReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_self_subject_rules_review( namespace: &str, body: &SelfSubjectRulesReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a SelfSubjectRulesReview
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for SelfSubjectRulesReview
impl Clone for SelfSubjectRulesReview
Source§fn clone(&self) -> SelfSubjectRulesReview
fn clone(&self) -> SelfSubjectRulesReview
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 SelfSubjectRulesReview
impl Debug for SelfSubjectRulesReview
Source§impl Default for SelfSubjectRulesReview
impl Default for SelfSubjectRulesReview
Source§fn default() -> SelfSubjectRulesReview
fn default() -> SelfSubjectRulesReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelfSubjectRulesReview
impl<'de> Deserialize<'de> for SelfSubjectRulesReview
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 PartialEq for SelfSubjectRulesReview
impl PartialEq for SelfSubjectRulesReview
Source§impl Resource for SelfSubjectRulesReview
impl Resource for SelfSubjectRulesReview
Source§const API_VERSION: &'static str = "authorization.openshift.io/v1"
const API_VERSION: &'static str = "authorization.openshift.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§impl Serialize for SelfSubjectRulesReview
impl Serialize for SelfSubjectRulesReview
impl StructuralPartialEq for SelfSubjectRulesReview
Auto Trait Implementations§
impl Freeze for SelfSubjectRulesReview
impl RefUnwindSafe for SelfSubjectRulesReview
impl Send for SelfSubjectRulesReview
impl Sync for SelfSubjectRulesReview
impl Unpin for SelfSubjectRulesReview
impl UnwindSafe for SelfSubjectRulesReview
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