Struct openshift_openapi::api::authorization::v1::UserRestriction[][src]

pub struct UserRestriction {
    pub groups: Vec<String>,
    pub labels: Vec<LabelSelector>,
    pub users: Vec<String>,
}

UserRestriction matches a user either by a string match on the user name, a string match on the name of a group to which the user belongs, or a label selector applied to the user labels.

Fields

groups: Vec<String>

Groups specifies a list of literal group names.

labels: Vec<LabelSelector>

Selectors specifies a list of label selectors over user labels.

users: Vec<String>

Users specifies a list of literal user names.

Trait Implementations

impl Clone for UserRestriction[src]

impl Debug for UserRestriction[src]

impl Default for UserRestriction[src]

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

impl PartialEq<UserRestriction> for UserRestriction[src]

impl Serialize for UserRestriction[src]

impl StructuralPartialEq for UserRestriction[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.