pub struct ScopeRestriction {
pub cluster_role: Option<ClusterRoleScopeRestriction>,
pub literals: Option<Vec<String>>,
}
Expand description
ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.
Fields§
§cluster_role: Option<ClusterRoleScopeRestriction>
ClusterRole describes a set of restrictions for cluster role scoping.
literals: Option<Vec<String>>
ExactValues means the scope has to match a particular set of strings exactly
Trait Implementations§
Source§impl Clone for ScopeRestriction
impl Clone for ScopeRestriction
Source§fn clone(&self) -> ScopeRestriction
fn clone(&self) -> ScopeRestriction
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 ScopeRestriction
impl Debug for ScopeRestriction
Source§impl Default for ScopeRestriction
impl Default for ScopeRestriction
Source§fn default() -> ScopeRestriction
fn default() -> ScopeRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScopeRestriction
impl<'de> Deserialize<'de> for ScopeRestriction
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 ScopeRestriction
impl PartialEq for ScopeRestriction
Source§impl Serialize for ScopeRestriction
impl Serialize for ScopeRestriction
impl StructuralPartialEq for ScopeRestriction
Auto Trait Implementations§
impl Freeze for ScopeRestriction
impl RefUnwindSafe for ScopeRestriction
impl Send for ScopeRestriction
impl Sync for ScopeRestriction
impl Unpin for ScopeRestriction
impl UnwindSafe for ScopeRestriction
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