pub struct SubjectRulesReview {
pub spec: SubjectRulesReviewSpec,
pub status: Option<SubjectRulesReviewStatus>,
}
Expand description
SubjectRulesReview is a resource you can create to determine which actions another user can perform in a namespace
Fields§
§spec: SubjectRulesReviewSpec
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 SubjectRulesReview
impl SubjectRulesReview
Sourcepub fn create_namespaced_subject_rules_review(
namespace: &str,
body: &SubjectRulesReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_subject_rules_review( namespace: &str, body: &SubjectRulesReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a SubjectRulesReview
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 SubjectRulesReview
impl Clone for SubjectRulesReview
Source§fn clone(&self) -> SubjectRulesReview
fn clone(&self) -> SubjectRulesReview
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 SubjectRulesReview
impl Debug for SubjectRulesReview
Source§impl Default for SubjectRulesReview
impl Default for SubjectRulesReview
Source§fn default() -> SubjectRulesReview
fn default() -> SubjectRulesReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubjectRulesReview
impl<'de> Deserialize<'de> for SubjectRulesReview
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 SubjectRulesReview
impl PartialEq for SubjectRulesReview
Source§impl Resource for SubjectRulesReview
impl Resource for SubjectRulesReview
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 SubjectRulesReview
impl Serialize for SubjectRulesReview
impl StructuralPartialEq for SubjectRulesReview
Auto Trait Implementations§
impl Freeze for SubjectRulesReview
impl RefUnwindSafe for SubjectRulesReview
impl Send for SubjectRulesReview
impl Sync for SubjectRulesReview
impl Unpin for SubjectRulesReview
impl UnwindSafe for SubjectRulesReview
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