pub struct GroupRestriction {
pub groups: Vec<String>,
pub labels: Vec<LabelSelector>,
}
Expand description
GroupRestriction matches a group either by a string match on the group name or a label selector applied to group labels.
Fields§
§groups: Vec<String>
Groups is a list of groups used to match against an individual user’s groups. If the user is a member of one of the whitelisted groups, the user is allowed to be bound to a role.
labels: Vec<LabelSelector>
Selectors specifies a list of label selectors over group labels.
Trait Implementations§
Source§impl Clone for GroupRestriction
impl Clone for GroupRestriction
Source§fn clone(&self) -> GroupRestriction
fn clone(&self) -> GroupRestriction
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 GroupRestriction
impl Debug for GroupRestriction
Source§impl Default for GroupRestriction
impl Default for GroupRestriction
Source§fn default() -> GroupRestriction
fn default() -> GroupRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GroupRestriction
impl<'de> Deserialize<'de> for GroupRestriction
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 GroupRestriction
impl PartialEq for GroupRestriction
Source§impl Serialize for GroupRestriction
impl Serialize for GroupRestriction
impl StructuralPartialEq for GroupRestriction
Auto Trait Implementations§
impl Freeze for GroupRestriction
impl RefUnwindSafe for GroupRestriction
impl Send for GroupRestriction
impl Sync for GroupRestriction
impl Unpin for GroupRestriction
impl UnwindSafe for GroupRestriction
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