[][src]Struct openshift_openapi::api::security::v1::PodSecurityPolicySubjectReviewSpec

pub struct PodSecurityPolicySubjectReviewSpec {
    pub groups: Option<Vec<String>>,
    pub template: PodTemplateSpec,
    pub user: Option<String>,
}

PodSecurityPolicySubjectReviewSpec defines specification for PodSecurityPolicySubjectReview

Fields

groups: Option<Vec<String>>

groups is the groups you're testing for.

template: PodTemplateSpec

template is the PodTemplateSpec to check. If template.spec.serviceAccountName is empty it will not be defaulted. If its non-empty, it will be checked.

user: Option<String>

user is the user you're testing for. If you specify "user" but not "group", then is it interpreted as "What if user were not a member of any groups. If user and groups are empty, then the check is performed using only the serviceAccountName in the template.

Trait Implementations

impl Clone for PodSecurityPolicySubjectReviewSpec[src]

impl Debug for PodSecurityPolicySubjectReviewSpec[src]

impl Default for PodSecurityPolicySubjectReviewSpec[src]

impl<'de> Deserialize<'de> for PodSecurityPolicySubjectReviewSpec[src]

impl PartialEq<PodSecurityPolicySubjectReviewSpec> for PodSecurityPolicySubjectReviewSpec[src]

impl Serialize for PodSecurityPolicySubjectReviewSpec[src]

impl StructuralPartialEq for PodSecurityPolicySubjectReviewSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.