pub struct UserRestriction {
pub groups: Vec<String>,
pub labels: Vec<LabelSelector>,
pub users: Vec<String>,
}
Expand description
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§
Source§impl Clone for UserRestriction
impl Clone for UserRestriction
Source§fn clone(&self) -> UserRestriction
fn clone(&self) -> UserRestriction
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 UserRestriction
impl Debug for UserRestriction
Source§impl Default for UserRestriction
impl Default for UserRestriction
Source§fn default() -> UserRestriction
fn default() -> UserRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserRestriction
impl<'de> Deserialize<'de> for UserRestriction
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 UserRestriction
impl PartialEq for UserRestriction
Source§impl Serialize for UserRestriction
impl Serialize for UserRestriction
impl StructuralPartialEq for UserRestriction
Auto Trait Implementations§
impl Freeze for UserRestriction
impl RefUnwindSafe for UserRestriction
impl Send for UserRestriction
impl Sync for UserRestriction
impl Unpin for UserRestriction
impl UnwindSafe for UserRestriction
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