pub struct PodSecurityPolicySelfSubjectReview {
pub spec: PodSecurityPolicySelfSubjectReviewSpec,
pub status: Option<PodSecurityPolicySubjectReviewStatus>,
}
Expand description
PodSecurityPolicySelfSubjectReview checks whether this user/SA tuple can create the PodTemplateSpec
Fields§
§spec: PodSecurityPolicySelfSubjectReviewSpec
spec defines specification the PodSecurityPolicySelfSubjectReview.
status: Option<PodSecurityPolicySubjectReviewStatus>
status represents the current information/status for the PodSecurityPolicySelfSubjectReview.
Implementations§
Source§impl PodSecurityPolicySelfSubjectReview
impl PodSecurityPolicySelfSubjectReview
Sourcepub fn create_namespaced_pod_security_policy_self_subject_review(
namespace: &str,
body: &PodSecurityPolicySelfSubjectReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_pod_security_policy_self_subject_review( namespace: &str, body: &PodSecurityPolicySelfSubjectReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a PodSecurityPolicySelfSubjectReview
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 PodSecurityPolicySelfSubjectReview
impl Clone for PodSecurityPolicySelfSubjectReview
Source§fn clone(&self) -> PodSecurityPolicySelfSubjectReview
fn clone(&self) -> PodSecurityPolicySelfSubjectReview
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 PodSecurityPolicySelfSubjectReview
impl Default for PodSecurityPolicySelfSubjectReview
Source§fn default() -> PodSecurityPolicySelfSubjectReview
fn default() -> PodSecurityPolicySelfSubjectReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodSecurityPolicySelfSubjectReview
impl<'de> Deserialize<'de> for PodSecurityPolicySelfSubjectReview
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 PodSecurityPolicySelfSubjectReview
impl PartialEq for PodSecurityPolicySelfSubjectReview
Source§fn eq(&self, other: &PodSecurityPolicySelfSubjectReview) -> bool
fn eq(&self, other: &PodSecurityPolicySelfSubjectReview) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Resource for PodSecurityPolicySelfSubjectReview
impl Resource for PodSecurityPolicySelfSubjectReview
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 PodSecurityPolicySelfSubjectReview
Auto Trait Implementations§
impl Freeze for PodSecurityPolicySelfSubjectReview
impl RefUnwindSafe for PodSecurityPolicySelfSubjectReview
impl Send for PodSecurityPolicySelfSubjectReview
impl Sync for PodSecurityPolicySelfSubjectReview
impl Unpin for PodSecurityPolicySelfSubjectReview
impl UnwindSafe for PodSecurityPolicySelfSubjectReview
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