pub struct PodSecurityPolicySubjectReview {
pub spec: PodSecurityPolicySubjectReviewSpec,
pub status: Option<PodSecurityPolicySubjectReviewStatus>,
}
Expand description
PodSecurityPolicySubjectReview checks whether a particular user/SA tuple can create the PodTemplateSpec.
Fields§
§spec: PodSecurityPolicySubjectReviewSpec
spec defines specification for the PodSecurityPolicySubjectReview.
status: Option<PodSecurityPolicySubjectReviewStatus>
status represents the current information/status for the PodSecurityPolicySubjectReview.
Implementations§
Source§impl PodSecurityPolicySubjectReview
impl PodSecurityPolicySubjectReview
Sourcepub fn create_namespaced_pod_security_policy_subject_review(
namespace: &str,
body: &PodSecurityPolicySubjectReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_pod_security_policy_subject_review( namespace: &str, body: &PodSecurityPolicySubjectReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a PodSecurityPolicySubjectReview
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 PodSecurityPolicySubjectReview
impl Clone for PodSecurityPolicySubjectReview
Source§fn clone(&self) -> PodSecurityPolicySubjectReview
fn clone(&self) -> PodSecurityPolicySubjectReview
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 Default for PodSecurityPolicySubjectReview
impl Default for PodSecurityPolicySubjectReview
Source§fn default() -> PodSecurityPolicySubjectReview
fn default() -> PodSecurityPolicySubjectReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodSecurityPolicySubjectReview
impl<'de> Deserialize<'de> for PodSecurityPolicySubjectReview
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 PodSecurityPolicySubjectReview
impl PartialEq for PodSecurityPolicySubjectReview
Source§fn eq(&self, other: &PodSecurityPolicySubjectReview) -> bool
fn eq(&self, other: &PodSecurityPolicySubjectReview) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Resource for PodSecurityPolicySubjectReview
impl Resource for PodSecurityPolicySubjectReview
Source§const API_VERSION: &'static str = "security.openshift.io/v1"
const API_VERSION: &'static str = "security.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§const GROUP: &'static str = "security.openshift.io"
const GROUP: &'static str = "security.openshift.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
impl StructuralPartialEq for PodSecurityPolicySubjectReview
Auto Trait Implementations§
impl Freeze for PodSecurityPolicySubjectReview
impl RefUnwindSafe for PodSecurityPolicySubjectReview
impl Send for PodSecurityPolicySubjectReview
impl Sync for PodSecurityPolicySubjectReview
impl Unpin for PodSecurityPolicySubjectReview
impl UnwindSafe for PodSecurityPolicySubjectReview
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